Commit a9db0e32 by 墨竹

fix:注释修改

parent 302cc879
......@@ -13,6 +13,7 @@ import com.gic.haoban.manage.api.dto.notify.dto.NoticeMessageInfoDTO;
public interface NoticeMessageApiService {
/**
* 消息接收 发送消息
* "routerName": "haobanNoticeMessage"
*
* @param json
*/
......
......@@ -179,12 +179,10 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
private List<TemplateContentBO> getDescriotion(NoticeMessageQDTO messageQDTO) {
List<TemplateContentBO> templateMessage = noticeMessageTemplateService.getQywxTemplateMessage(messageQDTO.getEnterpriseId(), messageQDTO.getTemplateCode());
if (CollectionUtils.isEmpty(templateMessage)) {
//todo 需要告警
logger.info("不存在模板");
return null;
}
//需要替换的数据
Map<String, String> contentMap = messageQDTO.getContentMap();
if (MapUtils.isEmpty(contentMap)) {
......@@ -193,7 +191,6 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
//替换的内容
for (TemplateContentBO templateContentBO : templateMessage) {
contentMap.forEach((k, v) -> {
templateContentBO.setVal(templateContentBO.getVal().replaceAll("\\#\\{" + k + "\\}", v));
});
......@@ -211,7 +208,6 @@ public class NoticeMessageApiServiceImpl implements NoticeMessageApiService {
private String getHaobanNotice(NoticeMessageQDTO messageQDTO) {
final String[] haobanTemplateMessage = {noticeMessageTemplateService.getHaobanTemplateMessage(messageQDTO.getEnterpriseId(), messageQDTO.getTemplateCode())};
if (StringUtils.isBlank(haobanTemplateMessage[0])) {
//todo 需要告警
logger.info("不存在好办的通知模板模板");
return null;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment