|
@@ -808,16 +808,20 @@ public class ExamAuditServiceImpl implements ExamAuditService {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void updateExamAuditByAllPass(Long examRecordDataId) {
|
|
|
+ public boolean updateExamAuditByAllPass(Long examRecordDataId) {
|
|
|
ExamAuditEntity examAuditEntity = examAuditRepo.findByExamRecordDataId(examRecordDataId);
|
|
|
- if (examAuditEntity == null||AuditStatus.PASS.equals(examAuditEntity.getStatus())) {
|
|
|
- return;
|
|
|
+ if (examAuditEntity == null) {
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ if (AuditStatus.PASS.equals(examAuditEntity.getStatus())) {
|
|
|
+ return true;
|
|
|
}
|
|
|
examAuditEntity.setDisciplineType(null);
|
|
|
examAuditEntity.setDisciplineDetail("开启审核全通过");
|
|
|
examAuditEntity.setStatus(AuditStatus.PASS);
|
|
|
examAuditEntity.setIllegallyTypeId(null);
|
|
|
examAuditRepo.save(examAuditEntity);
|
|
|
+ return true;
|
|
|
}
|
|
|
|
|
|
}
|