|
@@ -5,7 +5,6 @@ import cn.com.qmth.examcloud.api.commons.security.bean.User;
|
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.api.bean.ExamRecordDataBeanConvert;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.api.bean.ExamRecordDataDomain;
|
|
|
-import cn.com.qmth.examcloud.core.oe.admin.base.utils.Check;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.ExamRecordDataRepo;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ExamRecordDataEntity;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ExamRecordPaperStructEntity;
|
|
@@ -74,7 +73,6 @@ public class ExamProcessController extends ControllerSupport {
|
|
|
@ApiOperation(value = "练习课程列表")
|
|
|
@PostMapping("/queryPracticeCourseList")
|
|
|
public List<PracticeCourseInfo> queryPracticeCourseList(@RequestParam Long examId) {
|
|
|
- Check.isNull(examId, "examId不能为空");
|
|
|
User user = getAccessUser();
|
|
|
return practiceService.queryPracticeCourseList(examId, user.getUserId());
|
|
|
}
|
|
@@ -82,14 +80,12 @@ public class ExamProcessController extends ControllerSupport {
|
|
|
@ApiOperation(value = "课程练习记录详情")
|
|
|
@PostMapping("/queryPracticeRecordList")
|
|
|
public List<PracticeRecordInfo> queryPracticeRecordList(@RequestParam Long examStudentId) {
|
|
|
- Check.isNull(examStudentId, "examStudentId不能为空");
|
|
|
return practiceService.queryPracticeRecordList(examStudentId);
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "单次练习答题情况统计")
|
|
|
@PostMapping("/getPracticeDetailInfo")
|
|
|
public PracticeDetailInfo getPracticeDetailInfo(@RequestParam Long examRecordDataId, @RequestParam(required = false) String fromCache) {
|
|
|
- Check.isNull(examRecordDataId, "examRecordDataId不能为空");
|
|
|
if (fromCache != null) {
|
|
|
examRecordDataId = examRecordDataSyncService.getExamRecordDataIdByCacheId(examRecordDataId);
|
|
|
if (examRecordDataId == null) {
|
|
@@ -102,7 +98,6 @@ public class ExamProcessController extends ControllerSupport {
|
|
|
@ApiOperation(value = "获取考试记录试卷结构")
|
|
|
@PostMapping("/getExamRecordPaperStruct")
|
|
|
public ExamRecordPaperStructEntity getExamRecordPaperStruct(@RequestParam Long examRecordDataId, @RequestParam(required = false) String fromCache) {
|
|
|
- Check.isNull(examRecordDataId, "examRecordDataId不能为空");
|
|
|
if (fromCache != null) {
|
|
|
examRecordDataId = examRecordDataSyncService.getExamRecordDataIdByCacheId(examRecordDataId);
|
|
|
if (examRecordDataId == null) {
|
|
@@ -115,14 +110,12 @@ public class ExamProcessController extends ControllerSupport {
|
|
|
@ApiOperation(value = "获取交卷之后的所有试题作答信息")
|
|
|
@PostMapping("/getExamRecordQuestions")
|
|
|
public ExamRecordQuestionsEntity getExamRecordQuestions(@RequestParam Long examRecordDataId, @RequestParam(required = false) String fromCache) {
|
|
|
- Check.isNull(examRecordDataId, "examRecordDataId不能为空");
|
|
|
if (fromCache != null) {
|
|
|
examRecordDataId = examRecordDataSyncService.getExamRecordDataIdByCacheId(examRecordDataId);
|
|
|
if (examRecordDataId == null) {
|
|
|
throw new StatusException("1001", "未找到数据");
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
return examRecordQuestionsService.getExamRecordQuestionsAndFixExamRecordDataIfNecessary(examRecordDataId);
|
|
|
}
|
|
|
|