Parcourir la source

安全风险

master
PoffyZhang il y a 1 an
Parent
révision
5f26ef979a
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. +3
    -1
      pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/EarlyWarningManage.java

+ 3
- 1
pmapi/src/main/java/com/ningdatech/pmapi/sys/manage/EarlyWarningManage.java Voir le fichier

@@ -66,14 +66,17 @@ public class EarlyWarningManage {
case PROCESS_WARNING:
content = convertContent(noticeContent,project.getProjectName(),
InstTypeEnum.getByCode(biz),timeout);
records.setRuleType(WarningRuleTypeEnum.PROCESS_WARNING.getCode());
break;
case DECLARED_WARNING:
content = convertContent(noticeContent,project.getProjectName(),
WarningFlowTypeEnum.getByCode(biz),timeout);
records.setRuleType(WarningRuleTypeEnum.DECLARED_WARNING.getCode());
break;
case OPERATION_WARNING:
content = convertContent(noticeContent,project.getProjectName(),
WarningOperationTypeEnum.getByCode(biz),timeout);
records.setRuleType(WarningRuleTypeEnum.OPERATION_WARNING.getCode());
break;
default:
log.info("匹配不到 规则类型");
@@ -90,7 +93,6 @@ public class EarlyWarningManage {
records.setNoticeMethod(noticeMethod);
records.setNoticeContent(content);
records.setProjectName(project.getProjectName());
records.setRuleType(WarningRuleTypeEnum.PROCESS_WARNING.getCode());
records.setWarningUsername(Objects.nonNull(user) ? user.getUsername() : StringUtils.EMPTY);
records.setWarningEmployeecode(employeeCode);
earlyWarningRecordsService.save(records);


Chargement…
Annuler
Enregistrer