Commit 85cce5f0a0a28c97f325a2efbfd03a164bd5de57

Authored by 云中非
1 parent 47346820

fix: 告警通知的消息记录没有模板用途

... ... @@ -143,6 +143,7 @@ public class YtNoticeServiceImpl implements YtNoticeService {
143 143 private void sms4Alarm(AlarmInfoDTO alarmInfo,String templateId, Organization organization,List<AlarmContact> contacts){
144 144 SmsReqDTO info = new SmsReqDTO();
145 145 info.setId(templateId);
  146 + info.setTemplatePurpose(MsgTemplatePurposeEnum.FOR_ALARM_NOTICE.name());
146 147 LinkedHashMap<String, String> params = new LinkedHashMap<>();
147 148 //name-其他;device_name-其他;level-其他;location-其他;alarm_value-其他;
148 149 params.put("type", alarmInfo.getType());
... ... @@ -186,6 +187,7 @@ public class YtNoticeServiceImpl implements YtNoticeService {
186 187 info.setBody(body);
187 188 info.setEmailFormatEnum(EmailFormatEnum.TEXT.name());
188 189 info.setId(templateId);
  190 + info.setTemplatePurpose(MsgTemplatePurposeEnum.FOR_ALARM_NOTICE.name());
189 191
190 192 mailService.sendEmail(info);
191 193 }
... ...