|
@@ -78,8 +78,10 @@ public class SysReportController {
|
|
|
@ApiOperation(value = "课程列表")
|
|
|
@RequestMapping(value = "/common/list_course", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "科目信息", response = TBExamCourse.class)})
|
|
|
- public Result listCourse(@ApiParam(value = "考试id", required = true) @RequestParam String examId) {
|
|
|
+ public Result listCourse(@ApiParam(value = "学校id", required = true) @RequestParam String schoolId,
|
|
|
+ @ApiParam(value = "考试id", required = true) @RequestParam String examId) {
|
|
|
QueryWrapper<TBExamCourse> tbExamCourseQueryWrapper = new QueryWrapper<>();
|
|
|
+ tbExamCourseQueryWrapper.lambda().eq(TBExamCourse::getSchoolId, SystemConstant.convertIdToLong(schoolId));
|
|
|
tbExamCourseQueryWrapper.lambda().eq(TBExamCourse::getExamId, SystemConstant.convertIdToLong(examId));
|
|
|
return ResultUtil.ok(tbExamCourseService.list(tbExamCourseQueryWrapper));
|
|
|
}
|
|
@@ -87,32 +89,36 @@ public class SysReportController {
|
|
|
@ApiOperation(value = "开课学院列表")
|
|
|
@RequestMapping(value = "/common/list_teach_college", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "考生信息", response = TBExamStudentResult.class)})
|
|
|
- public Result listTeachCollege(@ApiParam(value = "考试id", required = true) @RequestParam String examId,
|
|
|
+ public Result listTeachCollege(@ApiParam(value = "学校id", required = true) @RequestParam String schoolId,
|
|
|
+ @ApiParam(value = "考试id", required = true) @RequestParam String examId,
|
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode) {
|
|
|
- return ResultUtil.ok(tbExamStudentService.selectTeachCollegeList(SystemConstant.convertIdToLong(examId), courseCode));
|
|
|
+ return ResultUtil.ok(tbExamStudentService.selectTeachCollegeList(SystemConstant.convertIdToLong(schoolId), SystemConstant.convertIdToLong(examId), courseCode));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "考察学院列表")
|
|
|
@RequestMapping(value = "/common/list_inspect_college", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "考生信息", response = TBExamStudentResult.class)})
|
|
|
- public Result listInspectCollege(@ApiParam(value = "考试id", required = true) @RequestParam String examId,
|
|
|
+ public Result listInspectCollege(@ApiParam(value = "学校id", required = true) @RequestParam String schoolId,
|
|
|
+ @ApiParam(value = "考试id", required = true) @RequestParam String examId,
|
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode) {
|
|
|
- return ResultUtil.ok(tbExamStudentService.selectInspectCollegeList(SystemConstant.convertIdToLong(examId), courseCode));
|
|
|
+ return ResultUtil.ok(tbExamStudentService.selectInspectCollegeList(SystemConstant.convertIdToLong(schoolId), SystemConstant.convertIdToLong(examId), courseCode));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "教师列表")
|
|
|
@RequestMapping(value = "/common/list_teacher", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "考生信息", response = TBExamStudentResult.class)})
|
|
|
- public Result listTeacher(@ApiParam(value = "考试id", required = true) @RequestParam String examId,
|
|
|
+ public Result listTeacher(@ApiParam(value = "学校id", required = true) @RequestParam String schoolId,
|
|
|
+ @ApiParam(value = "考试id", required = true) @RequestParam String examId,
|
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode) {
|
|
|
- return ResultUtil.ok(tbExamStudentService.selectTeachList(SystemConstant.convertIdToLong(examId), courseCode));
|
|
|
+ return ResultUtil.ok(tbExamStudentService.selectTeachList(SystemConstant.convertIdToLong(schoolId), SystemConstant.convertIdToLong(examId), courseCode));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "班级列表")
|
|
|
@RequestMapping(value = "/common/list_class", method = RequestMethod.POST)
|
|
|
@ApiResponses({@ApiResponse(code = 200, message = "考生信息", response = TBExamStudentResult.class)})
|
|
|
- public Result listClass(@ApiParam(value = "考试id", required = true) @RequestParam String examId,
|
|
|
+ public Result listClass(@ApiParam(value = "学校id", required = true) @RequestParam String schoolId,
|
|
|
+ @ApiParam(value = "考试id", required = true) @RequestParam String examId,
|
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode) {
|
|
|
- return ResultUtil.ok(tbExamStudentService.selectClassList(SystemConstant.convertIdToLong(examId), courseCode));
|
|
|
+ return ResultUtil.ok(tbExamStudentService.selectClassList(SystemConstant.convertIdToLong(schoolId), SystemConstant.convertIdToLong(examId), courseCode));
|
|
|
}
|
|
|
}
|