付智勇

no message

@@ -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};