|
@@ -24,9 +24,11 @@ import cn.com.qmth.examcloud.core.oe.admin.dao.ExamRecordDataRepo;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.ExamRecordFileAnswerRepo;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.ExamRecordForMarkingRepo;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.ExamStudentRepo;
|
|
|
-import cn.com.qmth.examcloud.core.oe.admin.dao.entity.*;
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ExamRecordFileAnswerEntity;
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ExamRecordForMarkingEntity;
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ExamStudentEntity;
|
|
|
+import cn.com.qmth.examcloud.core.oe.admin.dao.entity.ReexamineLogEntity;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.enums.CourseLevel;
|
|
|
-import cn.com.qmth.examcloud.core.oe.admin.dao.enums.ExamRecordStatus;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.dao.enums.FinishStatus;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.service.*;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.service.bean.OnHandExamInfo;
|
|
@@ -1020,7 +1022,7 @@ public class ExamStudentServiceImpl implements ExamStudentService {
|
|
|
@Transactional
|
|
|
public void setReexamine(Long examStudentId, String reexamineType, String reexamineDetail, Long operateUserId, String operateUserName) {
|
|
|
// 查询出上一次重考的记录
|
|
|
- List<ExamRecordDataEntity> examRecordDataList = examRecordService.getExamRecordListByExamStudentId(examStudentId);
|
|
|
+ /*List<ExamRecordDataEntity> examRecordDataList = examRecordService.getExamRecordListByExamStudentId(examStudentId);
|
|
|
Optional<ExamRecordDataEntity> examRecordOptional = examRecordDataList.stream()
|
|
|
.filter(examRecordData -> examRecordData.getExamRecordStatus() != ExamRecordStatus.EXAM_INVALID
|
|
|
&& examRecordData.getIsReexamine() != null && examRecordData.getIsReexamine())
|
|
@@ -1040,12 +1042,12 @@ public class ExamStudentServiceImpl implements ExamStudentService {
|
|
|
|
|
|
// 重新计算考生的最终分数
|
|
|
examStudentFinalScoreService.calcAndSaveFinalScore(examRecordData.getExamStudentId());
|
|
|
- }
|
|
|
+ }*/
|
|
|
|
|
|
// 考生表重考次数+1
|
|
|
ExamStudentEntity examStudent = examStudentRepo.findByExamStudentId(examStudentId);
|
|
|
- Integer extraExamNum = examStudent.getExtraNum() == null ? 0 : examStudent.getExtraNum();
|
|
|
- examStudent.setExtraNum(extraExamNum + 1);
|
|
|
+ int extraNum = examStudent.getExtraNum() == null ? 0 : examStudent.getExtraNum();
|
|
|
+ examStudent.setExtraNum(extraNum + 1);
|
|
|
examStudent.setReexamineType(reexamineType);
|
|
|
examStudent.setReexamineDetail(reexamineDetail);
|
|
|
examStudent.setUpdateTime(new Date());
|
|
@@ -1065,6 +1067,9 @@ public class ExamStudentServiceImpl implements ExamStudentService {
|
|
|
reexamineLog.setUpdateTime(new Date());
|
|
|
reexamineLog.setCreationTime(new Date());
|
|
|
reexamineLogService.addReexamineLog(reexamineLog);
|
|
|
+
|
|
|
+ log.warn("重考设置!examId:{} studentId:{} examStudentId:{} usedNum:{} extraNum:{} {} {}", examStudent.getExamId(),
|
|
|
+ examStudent.getStudentId(), examStudentId, examStudent.getUsedNum(), extraNum, reexamineType, reexamineDetail);
|
|
|
}
|
|
|
|
|
|
@Override
|