|
@@ -806,5 +806,18 @@ public class ExamAuditServiceImpl implements ExamAuditService {
|
|
|
// 修改考试记录为违纪、异常、已审
|
|
|
this.disciplineExamRecordData(realExamRecordDataId);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public void updateExamAuditByAllPass(Long examRecordDataId) {
|
|
|
+ ExamAuditEntity examAuditEntity = examAuditRepo.findByExamRecordDataId(examRecordDataId);
|
|
|
+ if (examAuditEntity == null||AuditStatus.PASS.equals(examAuditEntity.getStatus())) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ examAuditEntity.setDisciplineType(null);
|
|
|
+ examAuditEntity.setDisciplineDetail("开启审核全通过");
|
|
|
+ examAuditEntity.setStatus(AuditStatus.PASS);
|
|
|
+ examAuditEntity.setIllegallyTypeId(null);
|
|
|
+ examAuditRepo.save(examAuditEntity);
|
|
|
+ }
|
|
|
|
|
|
}
|