|
@@ -57,7 +57,7 @@ public class ESubjectBadstudentController {
|
57
|
57
|
Integer classid = invigilate.getClassid();
|
58
|
58
|
Integer page = invigilate.getPage();
|
59
|
59
|
Integer pageSize = invigilate.getPageSize();
|
60
|
|
- N_Utils.validation(new Object[]{teacherid, "教师id", 1, page, "页码", 1, pageSize, "显示条数", 1});
|
|
60
|
+ N_Utils.validation(new Object[]{teacherid, "教师id", 1, esid, "考试科目id", page, "页码", 1, pageSize, "显示条数", 1});
|
61
|
61
|
Map map = eSubjectBadstudentService.getJkDetail(esid, teacherid);
|
62
|
62
|
String classids = map.get("classids").toString();
|
63
|
63
|
PageHelper.startPage(page, pageSize);
|
|
@@ -81,7 +81,7 @@ public class ESubjectBadstudentController {
|
81
|
81
|
Integer classid = invigilate.getClassid();
|
82
|
82
|
Integer page = invigilate.getPage();
|
83
|
83
|
Integer pageSize = invigilate.getPageSize();
|
84
|
|
- N_Utils.validation(new Object[]{page, "页码", 1, pageSize, "显示条数", 1});
|
|
84
|
+ N_Utils.validation(new Object[]{esid, "考试科目id", page, "页码", 1, pageSize, "显示条数", 1});
|
85
|
85
|
Map map = eSubjectBadstudentService.getJkDetail(esid, 0);
|
86
|
86
|
String classids = map.get("classids").toString();
|
87
|
87
|
PageHelper.startPage(page, pageSize);
|
|
@@ -90,4 +90,48 @@ public class ESubjectBadstudentController {
|
90
|
90
|
map.put("pageResult", pageResult);
|
91
|
91
|
return new ResultVo(0, "获取成功", map);
|
92
|
92
|
}
|
|
93
|
+
|
|
94
|
+ /**
|
|
95
|
+ * 试卷学生异常记录--教师
|
|
96
|
+ *
|
|
97
|
+ * @return com.xhkjedu.vo.ResultVo
|
|
98
|
+ * @Param [invigilate]
|
|
99
|
+ * @Author ywx
|
|
100
|
+ * @Date 2022/8/18 9:16
|
|
101
|
+ **/
|
|
102
|
+ @PostMapping("/list_bs")
|
|
103
|
+ public ResultVo listBadStu(@RequestBody ESubjectInvigilate invigilate) {
|
|
104
|
+ Integer teacherid = invigilate.getTeacherid();
|
|
105
|
+ Integer esid = invigilate.getEsid();
|
|
106
|
+ Integer classid = invigilate.getClassid();
|
|
107
|
+ Integer page = invigilate.getPage();
|
|
108
|
+ Integer pageSize = invigilate.getPageSize();
|
|
109
|
+ N_Utils.validation(new Object[]{teacherid, "教师id", 1, esid, "考试科目id", 1, page, "页码", 1, pageSize, "显示条数", 1});
|
|
110
|
+ String classids = eSubjectBadstudentService.getClassIds(esid, teacherid);//教师监考班级ids
|
|
111
|
+ PageHelper.startPage(page, pageSize);
|
|
112
|
+ List<Map> list = eSubjectBadstudentService.listBadStu(esid, classids, classid);
|
|
113
|
+ PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(list));
|
|
114
|
+ return new ResultVo(0, "获取成功", pageResult);
|
|
115
|
+ }
|
|
116
|
+
|
|
117
|
+ /**
|
|
118
|
+ * 试卷学生异常记录--管理员
|
|
119
|
+ *
|
|
120
|
+ * @return com.xhkjedu.vo.ResultVo
|
|
121
|
+ * @Param [invigilate]
|
|
122
|
+ * @Author ywx
|
|
123
|
+ * @Date 2022/8/18 9:16
|
|
124
|
+ **/
|
|
125
|
+ @PostMapping("/list_gbs")
|
|
126
|
+ public ResultVo listGBadStu(@RequestBody ESubjectInvigilate invigilate) {
|
|
127
|
+ Integer esid = invigilate.getEsid();
|
|
128
|
+ Integer classid = invigilate.getClassid();
|
|
129
|
+ Integer page = invigilate.getPage();
|
|
130
|
+ Integer pageSize = invigilate.getPageSize();
|
|
131
|
+ N_Utils.validation(new Object[]{esid, "考试科目id", 1, page, "页码", 1, pageSize, "显示条数", 1});
|
|
132
|
+ PageHelper.startPage(page, pageSize);
|
|
133
|
+ List<Map> list = eSubjectBadstudentService.listBadStu(esid, null, classid);
|
|
134
|
+ PageResult pageResult = PageUtil.getPageResult(new PageInfo<>(list));
|
|
135
|
+ return new ResultVo(0, "获取成功", pageResult);
|
|
136
|
+ }
|
93
|
137
|
}
|