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

Loading…
Cancel
Save