Browse Source

评价列表

tags/正式3.14.0
雍文秀 5 months ago
parent
commit
2c3a11bc6b

+ 1
- 1
sapi/src/main/java/com/xhkjedu/sapi/controller/assess/AssessController.java View File

64
     public ResultVo list(@RequestBody TAssess assess) {
64
     public ResultVo list(@RequestBody TAssess assess) {
65
         N_Utils.validation(new Object[]{assess.getSchoolid(),"学校id",1,assess.getTemplateid(),"评价模板id",1
65
         N_Utils.validation(new Object[]{assess.getSchoolid(),"学校id",1,assess.getTemplateid(),"评价模板id",1
66
                 ,assess.getPage(),"页码",1,assess.getPageSize(),"显示条数",1});
66
                 ,assess.getPage(),"页码",1,assess.getPageSize(),"显示条数",1});
67
-        PageHelper.startPage(assess.getPage(), assess.getPageSize());
68
         assess.setUsertype(assessService.getUsertypeById(assess.getCreateid()));
67
         assess.setUsertype(assessService.getUsertypeById(assess.getCreateid()));
68
+        PageHelper.startPage(assess.getPage(), assess.getPageSize());
69
         List<Map> list = assessService.listAll(assess);
69
         List<Map> list = assessService.listAll(assess);
70
         PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
70
         PageResult pageResult = PageUtil.getPageResult(new PageInfo(list));
71
         return new ResultVo(0,"获取列表成功",pageResult);
71
         return new ResultVo(0,"获取列表成功",pageResult);

Loading…
Cancel
Save