|
@@ -78,6 +78,10 @@ public class EarlyWarningManage { |
|
|
WarningOperationTypeEnum.getByCode(biz),timeout); |
|
|
WarningOperationTypeEnum.getByCode(biz),timeout); |
|
|
records.setRuleType(WarningRuleTypeEnum.OPERATION_WARNING.getCode()); |
|
|
records.setRuleType(WarningRuleTypeEnum.OPERATION_WARNING.getCode()); |
|
|
break; |
|
|
break; |
|
|
|
|
|
case RENEWAL_FUND: |
|
|
|
|
|
content = convertContent(noticeContent,project.getProjectName(),timeout); |
|
|
|
|
|
records.setRuleType(WarningRuleTypeEnum.RENEWAL_FUND.getCode()); |
|
|
|
|
|
break; |
|
|
default: |
|
|
default: |
|
|
log.info("匹配不到 规则类型"); |
|
|
log.info("匹配不到 规则类型"); |
|
|
return; |
|
|
return; |
|
@@ -124,6 +128,20 @@ public class EarlyWarningManage { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
* 续建项目资金 |
|
|
|
|
|
* @param noticeContent |
|
|
|
|
|
* @param projectName |
|
|
|
|
|
* @param timeout |
|
|
|
|
|
* @return |
|
|
|
|
|
*/ |
|
|
|
|
|
private String convertContent(String noticeContent, String projectName, Integer timeout) { |
|
|
|
|
|
noticeContent = noticeContent.replace("{projectName}",projectName) |
|
|
|
|
|
.replace("{time}",String.valueOf(timeout)); |
|
|
|
|
|
log.info("通知内容 :{}",noticeContent); |
|
|
|
|
|
return noticeContent; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
* 转换出 通知的内容 |
|
|
* 转换出 通知的内容 |
|
|
* @param noticeContent |
|
|
* @param noticeContent |
|
|
* @param projectName |
|
|
* @param projectName |
|
|