正在显示
1 个修改的文件
包含
1 行增加
和
0 行删除
@@ -19,6 +19,7 @@ meetingService.prototype.createMeeting = async(meetingInfo) =>{ | @@ -19,6 +19,7 @@ meetingService.prototype.createMeeting = async(meetingInfo) =>{ | ||
19 | } | 19 | } |
20 | meetingService.prototype.getMeeting = async(queryData,page = 1,pageno =12) =>{ | 20 | meetingService.prototype.getMeeting = async(queryData,page = 1,pageno =12) =>{ |
21 | try { | 21 | try { |
22 | + console.log(pageno,page,(page-1)*pageno) | ||
22 | let backMeeting = await meetingModel.findAll({where:queryData,offset: (page-1)*pageno, limit: pageno}); | 23 | let backMeeting = await meetingModel.findAll({where:queryData,offset: (page-1)*pageno, limit: pageno}); |
23 | let count = await meetingModel.count({where:queryData}) | 24 | let count = await meetingModel.count({where:queryData}) |
24 | return {meetingInfo:backMeeting,count:count,page:page,pageno:pageno}; | 25 | return {meetingInfo:backMeeting,count:count,page:page,pageno:pageno}; |
-
请 注册 或 登录 后发表评论