|
|
@@ -21,9 +21,7 @@ import lombok.AllArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.lang3.StringUtils; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.ZoneId; |
|
|
|
import java.util.Objects; |
|
|
|
|
|
|
|
/** |
|
|
@@ -131,6 +129,7 @@ public class EarlyWarningManage { |
|
|
|
private String convertContent(String noticeContent, String projectName, InstTypeEnum instTypeEnum, Integer timeout) { |
|
|
|
noticeContent = noticeContent.replace("{projectName}",projectName) |
|
|
|
.replace("{flowType}",Objects.nonNull(instTypeEnum) ? instTypeEnum.getDesc() : "{flowType}") |
|
|
|
.replace("{stepName}",Objects.nonNull(instTypeEnum) ? instTypeEnum.getDesc() : "{stepName}") |
|
|
|
.replace("{time}",String.valueOf(timeout)); |
|
|
|
log.info("通知内容 :{}",noticeContent); |
|
|
|
return noticeContent; |
|
|
@@ -139,6 +138,7 @@ public class EarlyWarningManage { |
|
|
|
private String convertContent(String noticeContent, String projectName, WarningFlowTypeEnum warningFlowTypeEnum, Integer timeout) { |
|
|
|
noticeContent = noticeContent.replace("{projectName}",projectName) |
|
|
|
.replace("{flowType}",Objects.nonNull(warningFlowTypeEnum) ? warningFlowTypeEnum.getDesc() : "{flowType}") |
|
|
|
.replace("{stepName}",Objects.nonNull(warningFlowTypeEnum) ? warningFlowTypeEnum.getDesc() : "{stepName}") |
|
|
|
.replace("{time}",String.valueOf(timeout)); |
|
|
|
log.info("通知内容 :{}",noticeContent); |
|
|
|
return noticeContent; |
|
|
@@ -147,6 +147,7 @@ public class EarlyWarningManage { |
|
|
|
private String convertContent(String noticeContent, String projectName, WarningOperationTypeEnum operationTypeEnum, Integer timeout) { |
|
|
|
noticeContent = noticeContent.replace("{projectName}",projectName) |
|
|
|
.replace("{flowType}",Objects.nonNull(operationTypeEnum) ? operationTypeEnum.getDesc() : "{flowType}") |
|
|
|
.replace("{stepName}",Objects.nonNull(operationTypeEnum) ? operationTypeEnum.getDesc() : "{stepName}") |
|
|
|
.replace("{time}",String.valueOf(timeout)); |
|
|
|
log.info("通知内容 :{}",noticeContent); |
|
|
|
return noticeContent; |
|
|
|