|
@@ -479,6 +479,9 @@ public class ExamAuditServiceImpl implements ExamAuditService {
|
|
|
examAuditEntity.setAuditUserName(AUDIT_USER_NAME);
|
|
|
examAuditEntity.setStatus(AuditStatus.UN_PASS);
|
|
|
examAuditRepo.save(examAuditEntity);
|
|
|
+
|
|
|
+ // 修改考试记录为违纪、异常、已审
|
|
|
+ this.disciplineExamRecordData(realExamRecordDataId);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -496,10 +499,15 @@ public class ExamAuditServiceImpl implements ExamAuditService {
|
|
|
examAuditEntity.setStatus(AuditStatus.UN_PASS);
|
|
|
examAuditRepo.save(examAuditEntity);
|
|
|
|
|
|
- //同时该考试记录为违纪、异常、已审
|
|
|
- Optional<ExamRecordDataEntity> byId = examRecordDataRepo.findById(realExamRecordDataId);
|
|
|
- if (byId.isPresent()) {
|
|
|
- ExamRecordDataEntity entity = byId.get();
|
|
|
+ // 修改考试记录为违纪、异常、已审
|
|
|
+ this.disciplineExamRecordData(realExamRecordDataId);
|
|
|
+ }
|
|
|
+
|
|
|
+ private void disciplineExamRecordData(Long realExamRecordDataId) {
|
|
|
+ Optional<ExamRecordDataEntity> optional = examRecordDataRepo.findById(realExamRecordDataId);
|
|
|
+ if (optional.isPresent()) {
|
|
|
+ // 修改考试记录为违纪、异常、已审
|
|
|
+ ExamRecordDataEntity entity = optional.get();
|
|
|
entity.setIsIllegality(true);
|
|
|
entity.setIsWarn(true);
|
|
|
entity.setIsAudit(true);
|