|
@@ -2,6 +2,7 @@ package cn.com.qmth.examcloud.core.oe.student.service.impl;
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.support.enums.SyncStatus;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
@@ -59,6 +60,8 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
|
|
|
examRecordData.setFaceFailedCount(0);
|
|
|
examRecordData.setFaceStrangerCount(0);
|
|
|
examRecordData.setExamRecordStatus(ExamRecordStatus.EXAM_ING);
|
|
|
+ examRecordData.setSyncStatus(SyncStatus.UNSYNC);
|
|
|
+
|
|
|
examRecordDataRepo.save(examRecordData);
|
|
|
ExamRecordData bean = of(examRecordData);
|
|
|
//存入redis
|
|
@@ -122,6 +125,7 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
|
|
|
bean.setObjectiveAccuracy(et.getObjectiveAccuracy());
|
|
|
bean.setSubjectiveScore(et.getSubjectiveScore());
|
|
|
bean.setSuccPercent(et.getSuccPercent());
|
|
|
+ bean.setSyncStatus(et.getSyncStatus());
|
|
|
return bean;
|
|
|
}
|
|
|
}
|