|
@@ -520,7 +520,7 @@ public class ExamAuditServiceImpl implements ExamAuditService {
|
|
|
examRecordData.setUpdateTime(new Date());
|
|
|
examRecordDataRepo.save(examRecordData);
|
|
|
|
|
|
- doAuditPostProcesser(redoAuditInfo.getIsPass(), examRecordData);
|
|
|
+ doAuditPostProcesser(redoAuditInfo.getIsPass(), examRecordData,redoAuditInfo.getFromMarking());
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -698,16 +698,19 @@ public class ExamAuditServiceImpl implements ExamAuditService {
|
|
|
* @param isPass
|
|
|
* @param examRecordData
|
|
|
*/
|
|
|
- private void doAuditPostProcesser(Boolean isPass, ExamRecordDataEntity examRecordData) {
|
|
|
+ private void doAuditPostProcesser(Boolean isPass, ExamRecordDataEntity examRecordData,Boolean fromMarking) {
|
|
|
if (isPass) {
|
|
|
auditPassPostProcesser(examRecordData);
|
|
|
} else {
|
|
|
- auditUnPassPostProcesser(examRecordData);
|
|
|
+ auditUnPassPostProcesser(examRecordData,fromMarking);
|
|
|
}
|
|
|
|
|
|
//重新计算考生的最终分数
|
|
|
examStudentFinalScoreService.calcAndSaveFinalScore(examRecordData.getExamStudentId());
|
|
|
}
|
|
|
+ private void doAuditPostProcesser(Boolean isPass, ExamRecordDataEntity examRecordData) {
|
|
|
+ doAuditPostProcesser(isPass, examRecordData, null);
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
|
* 审核通过后置处理
|
|
@@ -761,11 +764,13 @@ public class ExamAuditServiceImpl implements ExamAuditService {
|
|
|
*
|
|
|
* @param examRecordData
|
|
|
*/
|
|
|
- private void auditUnPassPostProcesser(ExamRecordDataEntity examRecordData) {
|
|
|
- ExamRecordForMarkingEntity examRecordForMarking = examRecordForMarkingRepo.findByExamRecordDataId(examRecordData.getId());
|
|
|
- if (examRecordForMarking != null) {
|
|
|
- //删除阅卷需要数据,防止违纪数据进入阅卷
|
|
|
- examRecordForMarkingRepo.delete(examRecordForMarking);
|
|
|
+ private void auditUnPassPostProcesser(ExamRecordDataEntity examRecordData,Boolean fromMarking) {
|
|
|
+ if(fromMarking==null||!fromMarking) {
|
|
|
+ ExamRecordForMarkingEntity examRecordForMarking = examRecordForMarkingRepo.findByExamRecordDataId(examRecordData.getId());
|
|
|
+ if (examRecordForMarking != null) {
|
|
|
+ //删除阅卷需要数据,防止违纪数据进入阅卷
|
|
|
+ examRecordForMarkingRepo.delete(examRecordForMarking);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
//删除考生的最终分数,后续会重新计算
|