update - 优化抄送模板配置与回显

This commit is contained in:
wangli 2024-03-22 18:47:49 +08:00
parent c0133c055c
commit 17a65ff9c4

View File

@ -326,7 +326,7 @@ public final class BpmnJsonConverterUtil {
noticeMessageAttribute.setName(ELEMENT_ATTRIBUTE_VALUE);
noticeMessageAttribute.setValue(noticeConf.getNotice().getNoticeMessageId());
noticeMessage.addAttribute(noticeMessageAttribute);
noticeMessage.setElementText(StringUtils.hasLength(noticeConf.getNotice().getViewJson()) ?
noticeMessage.setElementText(StringUtils.hasText(noticeConf.getNotice().getViewJson()) ?
noticeConf.getNotice().getViewJson() : "");
noticeConfigElement.addChildElement(noticeMessage);
}
@ -339,7 +339,7 @@ public final class BpmnJsonConverterUtil {
pendingMessageAttribute.setName(ELEMENT_ATTRIBUTE_VALUE);
pendingMessageAttribute.setValue(noticeConf.getPending().getPendingMessageId());
pendingMessage.addAttribute(pendingMessageAttribute);
pendingMessage.setElementText(StringUtils.hasLength(noticeConf.getPending().getViewJson()) ?
pendingMessage.setElementText(StringUtils.hasText(noticeConf.getPending().getViewJson()) ?
noticeConf.getPending().getViewJson() : "");
noticeConfigElement.addChildElement(pendingMessage);
}
@ -350,10 +350,10 @@ public final class BpmnJsonConverterUtil {
carbonCopyMessage.setName(TEMPLATE_CARBON_COPY_MESSAGE_ID);
ExtensionAttribute carbonCopyMessageAttribute = new ExtensionAttribute();
carbonCopyMessageAttribute.setName(ELEMENT_ATTRIBUTE_VALUE);
carbonCopyMessageAttribute.setValue(noticeConf.getPending().getPendingMessageId());
carbonCopyMessageAttribute.setValue(noticeConf.getCarbonCopy().getCarbonCopyMessageId());
carbonCopyMessage.addAttribute(carbonCopyMessageAttribute);
carbonCopyMessage.setElementText(StringUtils.hasLength(noticeConf.getPending().getViewJson()) ?
noticeConf.getPending().getViewJson() : "");
carbonCopyMessage.setElementText(StringUtils.hasText(noticeConf.getCarbonCopy().getViewJson()) ?
noticeConf.getCarbonCopy().getViewJson() : "");
noticeConfigElement.addChildElement(carbonCopyMessage);
}
@ -365,7 +365,7 @@ public final class BpmnJsonConverterUtil {
smsMessageAttribute.setName(ELEMENT_ATTRIBUTE_VALUE);
smsMessageAttribute.setValue(noticeConf.getSms().getSmsId());
smsMessage.addAttribute(smsMessageAttribute);
smsMessage.setElementText(StringUtils.hasLength(noticeConf.getSms().getViewJson()) ?
smsMessage.setElementText(StringUtils.hasText(noticeConf.getSms().getViewJson()) ?
noticeConf.getSms().getViewJson() : "");
noticeConfigElement.addChildElement(smsMessage);
}