Browse Source

分页查询调整位置

tags/正式3.11.0
王宁 1 year ago
parent
commit
d59e035119

+ 2
- 2
sexam/src/main/java/com/xhkjedu/sexam/controller/report/EReportClassController.java View File

358
         int userid = paramsVo.getUserid();
358
         int userid = paramsVo.getUserid();
359
         N_Utils.validation(new Object[]{userid, "用户id", 1
359
         N_Utils.validation(new Object[]{userid, "用户id", 1
360
                 , page, "显示页码", 1, pageSize, "显示条数", 1});
360
                 , page, "显示页码", 1, pageSize, "显示条数", 1});
361
-        PageHelper.startPage(page, pageSize);
362
         Integer schoolid = eReportClassService.getSchoolidByUserid(paramsVo.getUserid());
361
         Integer schoolid = eReportClassService.getSchoolidByUserid(paramsVo.getUserid());
363
         paramsVo.setSchoolid(schoolid);
362
         paramsVo.setSchoolid(schoolid);
363
+        PageHelper.startPage(page, pageSize);
364
         List<Map> list = eReportClassService.listEndExamsForClassTeacher(paramsVo);
364
         List<Map> list = eReportClassService.listEndExamsForClassTeacher(paramsVo);
365
         PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(list));
365
         PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(list));
366
         return new ResultVo(0, "获取成功", pageResult);
366
         return new ResultVo(0, "获取成功", pageResult);
456
         int userid = paramsVo.getUserid();
456
         int userid = paramsVo.getUserid();
457
         N_Utils.validation(new Object[]{userid, "用户id", 1
457
         N_Utils.validation(new Object[]{userid, "用户id", 1
458
                 , page, "显示页码", 1, pageSize, "显示条数", 1});
458
                 , page, "显示页码", 1, pageSize, "显示条数", 1});
459
-        PageHelper.startPage(page, pageSize);
460
         Integer schoolid = eReportClassService.getSchoolidByUserid(paramsVo.getUserid());
459
         Integer schoolid = eReportClassService.getSchoolidByUserid(paramsVo.getUserid());
461
         paramsVo.setSchoolid(schoolid);
460
         paramsVo.setSchoolid(schoolid);
461
+        PageHelper.startPage(page, pageSize);
462
         List<Map> list = eReportClassService.listEndExamsForClass(paramsVo);
462
         List<Map> list = eReportClassService.listEndExamsForClass(paramsVo);
463
         PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(list));
463
         PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(list));
464
         return new ResultVo(0, "获取成功", pageResult);
464
         return new ResultVo(0, "获取成功", pageResult);

Loading…
Cancel
Save