|
@@ -1,11 +1,10 @@
|
|
|
package cn.com.qmth.examcloud.core.oe.admin.service.impl;
|
|
|
|
|
|
-import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
+import cn.com.qmth.examcloud.api.commons.enums.ExamType;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.ExamRecordDataRepo;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.ExamRecordForMarkingRepo;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ExamRecordDataEntity;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ExamRecordForMarkingEntity;
|
|
|
-import cn.com.qmth.examcloud.core.oe.admin.dao.enums.ExamType;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.enums.MarkingType;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.service.ExamRecordForMarkingService;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.service.ExamRecordQuestionsService;
|
|
@@ -71,7 +70,7 @@ public class ExamRecordForMarkingServiceImpl implements ExamRecordForMarkingServ
|
|
|
GetExamReq getExamReq = new GetExamReq();
|
|
|
getExamReq.setId(examId);
|
|
|
GetExamResp getExamResp = examCloudService.getExam(getExamReq);
|
|
|
- ExamType examType = ExamType.strToEnum(getExamResp.getExamBean().getExamType());
|
|
|
+ ExamType examType = ExamType.valueOf(getExamResp.getExamBean().getExamType());
|
|
|
|
|
|
List<ExamRecordForMarkingEntity> examRecordForMarkingList;
|
|
|
|
|
@@ -113,7 +112,7 @@ public class ExamRecordForMarkingServiceImpl implements ExamRecordForMarkingServ
|
|
|
GetExamReq getExamReq = new GetExamReq();
|
|
|
getExamReq.setId(examId);
|
|
|
GetExamResp getExamResp = examCloudService.getExam(getExamReq);
|
|
|
- ExamType examType = ExamType.strToEnum(getExamResp.getExamBean().getExamType());
|
|
|
+ ExamType examType = ExamType.valueOf(getExamResp.getExamBean().getExamType());
|
|
|
|
|
|
List<ExamRecordForMarkingEntity> examRecordForMarkingList = examRecordForMarkingRepo.findByExamIdAndCourseId(examId, courseId);
|
|
|
if (examType == ExamType.OFFLINE) {
|