|
@@ -21,6 +21,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.util.Objects;
|
|
|
|
|
|
@Api(tags = "课程Controller")
|
|
@@ -42,7 +43,7 @@ public class CourseController {
|
|
|
@ApiParam(value = "学校id", required = false) @RequestParam(required = false) String schoolId,
|
|
|
@ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber,
|
|
|
@ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
|
|
|
- return ResultUtil.ok(taExamCourseService.surveyTeacherList(new Page<>(pageNumber, pageSize), SystemConstant.convertIdToLong(examId), semester, Objects.isNull(schoolId) ? (Long) ServletUtil.getRequestHeaderSchoolId() : SystemConstant.convertIdToLong(schoolId)));
|
|
|
+ return ResultUtil.ok(taExamCourseService.surveyTeacherList(new Page<>(pageNumber, pageSize), SystemConstant.convertIdToLong(examId), semester, Objects.isNull(schoolId) ? SystemConstant.convertIdToLong(String.valueOf(ServletUtil.getRequestHeaderSchoolId())) : SystemConstant.convertIdToLong(schoolId)));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "开课课程考试总览-教师各课堂成绩排名接口")
|
|
@@ -54,7 +55,7 @@ public class CourseController {
|
|
|
@ApiParam(value = "科目编码", required = true) @RequestParam String courseCode,
|
|
|
@ApiParam(value = "分页页码", required = true) @RequestParam int pageNumber,
|
|
|
@ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
|
|
|
- return ResultUtil.ok(taExamCourseService.surveyTeacherTeacherView(new Page<>(pageNumber, pageSize), Objects.isNull(schoolId) ? (Long) ServletUtil.getRequestHeaderSchoolId() : SystemConstant.convertIdToLong(schoolId), semester, SystemConstant.convertIdToLong(examId), courseCode));
|
|
|
+ return ResultUtil.ok(taExamCourseService.surveyTeacherTeacherView(new Page<>(pageNumber, pageSize), Objects.isNull(schoolId) ? SystemConstant.convertIdToLong(String.valueOf(ServletUtil.getRequestHeaderSchoolId())) : SystemConstant.convertIdToLong(schoolId), semester, SystemConstant.convertIdToLong(examId), courseCode));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "开课课程考试总览-试题难度得分情况分析接口")
|
|
@@ -132,4 +133,17 @@ public class CourseController {
|
|
|
@ApiParam(value = "分页数", required = true) @RequestParam int pageSize) {
|
|
|
return ResultUtil.ok(taExamCourseService.surveyAspointsList(new Page<>(pageNumber, pageSize), Objects.isNull(schoolId) ? (Long) ServletUtil.getRequestHeaderSchoolId() : SystemConstant.convertIdToLong(schoolId), SystemConstant.convertIdToLong(examId), courseCode, publishStatus, semester));
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "赋分试算接口")
|
|
|
+ @RequestMapping(value = "/survey_aspoints/calculation", method = RequestMethod.POST)
|
|
|
+ @ApiResponses({@ApiResponse(code = 200, message = "赋分试算接口", response = TrialCalculationResult.class)})
|
|
|
+ public Result surveyAspointsCalculation(
|
|
|
+ @ApiParam(value = "考试id", required = true) @RequestParam String examId,
|
|
|
+ @ApiParam(value = "科目编码", required = true) @RequestParam String courseCode,
|
|
|
+ @ApiParam(value = "赋分系数", required = true) @RequestParam BigDecimal coefficient) {
|
|
|
+ return ResultUtil.ok(taExamCourseService.trialCalculate(SystemConstant.convertIdToLong(examId),courseCode,coefficient));
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
}
|