Showing
1 changed file
with
2 additions
and
0 deletions
... | ... | @@ -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 | } | ... | ... |