|
@@ -19,6 +19,7 @@ import cn.com.qmth.examcloud.core.oe.student.api.request.CalcFaceBiopsyResultReq
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.request.GetExamRecordDataIdsReq;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.request.UpdateExamRecordDataBatchNumReq;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.request.UpdateExamRecordStatusReq;
|
|
|
+import cn.com.qmth.examcloud.core.oe.student.api.request.UpdatePartialExamRecordReq;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.response.CalcExamScoreResp;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.api.response.CalcFaceBiopsyResultResp;
|
|
|
import cn.com.qmth.examcloud.core.oe.student.base.utils.QuestionTypeUtil;
|
|
@@ -326,6 +327,29 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
|
|
|
return resp;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 更新部分考试记录数据
|
|
|
+ *
|
|
|
+ * @param req
|
|
|
+ */
|
|
|
+ @Transactional
|
|
|
+ @Override
|
|
|
+ public void updatePartialExamRecord(UpdatePartialExamRecordReq req) {
|
|
|
+ if (null == req.getId()) {
|
|
|
+ throw new StatusException("300001","考试记录id不允许为空");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (StringUtils.isNotEmpty(req.getSyncStatus())) {
|
|
|
+ try {
|
|
|
+ SyncStatus.valueOf(req.getSyncStatus());
|
|
|
+ } catch (IllegalArgumentException e) {
|
|
|
+ throw new StatusException("300002","同步状态值不正确");
|
|
|
+ }
|
|
|
+
|
|
|
+ examRecordDataRepo.updateExamRecordSyncStatusById(req.getSyncStatus(),req.getId());
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 更新客观题答案
|
|
|
*
|
|
@@ -360,6 +384,7 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @Transactional
|
|
|
@Override
|
|
|
public void updateExamRecordStatus(UpdateExamRecordStatusReq req) {
|
|
|
Long id = req.getId();
|