|
@@ -162,11 +162,18 @@ public class MsClassStudentController {
|
162
|
162
|
**/
|
163
|
163
|
@PostMapping("/search_student")
|
164
|
164
|
public ResultVo searchStudent(@RequestBody CStudentVo cs) {
|
|
165
|
+ Integer page = cs.getPage();
|
|
166
|
+ Integer size = cs.getPageSize();
|
165
|
167
|
N_Utils.validation(new Object[]{
|
166
|
168
|
cs.getExamid(), "考试id", 1
|
167
|
169
|
, cs.getSchoolid(), "学校id", 1
|
168
|
170
|
, cs.getClasstype(), "班级类型", 1
|
|
171
|
+ , page, "页码", 1
|
|
172
|
+ , size, "条数", 1
|
169
|
173
|
});
|
170
|
|
- return new ResultVo(0, "查询成功!", msClassStudentService.searchStudent(cs));
|
|
174
|
+ PageHelper.startPage(page, size);
|
|
175
|
+ List<Map> list = msClassStudentService.searchStudent(cs);
|
|
176
|
+ PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(list));
|
|
177
|
+ return new ResultVo(0, "查询成功!", pageResult);
|
171
|
178
|
}
|
172
|
179
|
}
|