|
@@ -459,6 +459,28 @@ public class ExamAuditServiceImpl implements ExamAuditService {
|
|
|
examAuditRepo.save(examAuditEntity);
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public void saveExamAuditForIllegalClient(Long realExamRecordDataId, String reason) {
|
|
|
+ boolean exist = examAuditRepo.existsByExamRecordDataId(realExamRecordDataId);
|
|
|
+ if (exist) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ ExamAuditEntity examAuditEntity = new ExamAuditEntity();
|
|
|
+ examAuditEntity.setExamRecordDataId(realExamRecordDataId);
|
|
|
+ examAuditEntity.setDisciplineType(DisciplineType.ILLEGAL_CLIENT.name());
|
|
|
+ if (StringUtils.isNotEmpty(reason)) {
|
|
|
+ // 限制字符串最大长度
|
|
|
+ reason = StringUtils.substring(reason, 0, 1000);
|
|
|
+ examAuditEntity.setDisciplineDetail(reason);
|
|
|
+ } else {
|
|
|
+ examAuditEntity.setDisciplineDetail(DisciplineType.ILLEGAL_CLIENT.getDescription());
|
|
|
+ }
|
|
|
+ examAuditEntity.setUserId(DisciplineType.ILLEGAL_CLIENT.name());
|
|
|
+ examAuditEntity.setAuditUserName(AUDIT_USER_NAME);
|
|
|
+ examAuditEntity.setStatus(AuditStatus.UN_PASS);
|
|
|
+ examAuditRepo.save(examAuditEntity);
|
|
|
+ }
|
|
|
+
|
|
|
@Override
|
|
|
public void saveHeaderWarnAudit(Long realExamRecordDataId) {
|
|
|
ExamAuditEntity examAudit = examAuditRepo.findByExamRecordDataId(realExamRecordDataId);
|