修改标签替换。
This commit is contained in:
parent
789580b15d
commit
d2615383e7
@ -744,6 +744,9 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
|
|||||||
TextMessage textMessage = textMessageMapper.selectTextMessageById(messageTemplateId);
|
TextMessage textMessage = textMessageMapper.selectTextMessageById(messageTemplateId);
|
||||||
if (ObjectUtils.isNotEmpty(textMessage)) {
|
if (ObjectUtils.isNotEmpty(textMessage)) {
|
||||||
String textMessageContent = textMessage.getTextMessageContent();
|
String textMessageContent = textMessage.getTextMessageContent();
|
||||||
|
if (StringUtils.isBlank(textMessageContent)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
// 替换{{}}中的内容
|
// 替换{{}}中的内容
|
||||||
Pattern pattern = Pattern.compile("#\\{([^\\}]*)\\}");
|
Pattern pattern = Pattern.compile("#\\{([^\\}]*)\\}");
|
||||||
Matcher matcher = pattern.matcher(textMessage.getTextMessageContent());
|
Matcher matcher = pattern.matcher(textMessage.getTextMessageContent());
|
||||||
@ -789,7 +792,7 @@ public class SignPatientManageRouteServiceImpl implements ISignPatientManageRout
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String templateContent = wechatTemplate.getTemplateContent();
|
String templateContent = wechatTemplate.getTemplateContent();
|
||||||
if (StringUtils.isEmpty(templateContent)) {
|
if (StringUtils.isBlank(templateContent)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
Pattern pattern = Pattern.compile("#\\{([^\\}]*)\\}");
|
Pattern pattern = Pattern.compile("#\\{([^\\}]*)\\}");
|
||||||
|
|||||||
@ -887,6 +887,9 @@ public class SignPatientManageRouteNodeServiceImpl implements ISignPatientManage
|
|||||||
TextMessage textMessage = textMessageMapper.selectTextMessageById(messageTemplateId);
|
TextMessage textMessage = textMessageMapper.selectTextMessageById(messageTemplateId);
|
||||||
if (ObjectUtils.isNotEmpty(textMessage)) {
|
if (ObjectUtils.isNotEmpty(textMessage)) {
|
||||||
String textMessageContent = textMessage.getTextMessageContent();
|
String textMessageContent = textMessage.getTextMessageContent();
|
||||||
|
if (StringUtils.isBlank(textMessageContent)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
// 替换{{}}中的内容
|
// 替换{{}}中的内容
|
||||||
Pattern pattern = Pattern.compile("#\\{([^\\}]*)\\}");
|
Pattern pattern = Pattern.compile("#\\{([^\\}]*)\\}");
|
||||||
Matcher matcher = pattern.matcher(textMessage.getTextMessageContent());
|
Matcher matcher = pattern.matcher(textMessage.getTextMessageContent());
|
||||||
@ -938,6 +941,9 @@ public class SignPatientManageRouteNodeServiceImpl implements ISignPatientManage
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String templateContent = wechatTemplate.getTemplateContent();
|
String templateContent = wechatTemplate.getTemplateContent();
|
||||||
|
if (StringUtils.isBlank(templateContent)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
Pattern pattern = Pattern.compile("#\\{([^\\}]*)\\}");
|
Pattern pattern = Pattern.compile("#\\{([^\\}]*)\\}");
|
||||||
Matcher matcher = pattern.matcher(templateContent);
|
Matcher matcher = pattern.matcher(templateContent);
|
||||||
while (matcher.find()) {
|
while (matcher.find()) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user