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