...
|
...
|
@@ -209,6 +209,7 @@ public class YtNoticeServiceImpl implements YtNoticeService { |
209
|
209
|
params.put("organization", organization != null ? organization.getName() : "");
|
210
|
210
|
params.put("createtime", YtDateTimeUtils.formate(alarmInfo.getCreateTs()));
|
211
|
211
|
info.setParams(params);
|
|
212
|
+ info.setTemplatePurpose(MsgTemplatePurposeEnum.FOR_ALARM_NOTICE.name());
|
212
|
213
|
contacts.stream().parallel().forEach(item -> {
|
213
|
214
|
if (!item.getDingtalk().isEmpty()) {
|
214
|
215
|
info.setPhoneNumbers(item.getDingtalk());
|
...
|
...
|
@@ -238,6 +239,7 @@ public class YtNoticeServiceImpl implements YtNoticeService { |
238
|
239
|
params.put("organization", organization != null ? organization.getName() : "");
|
239
|
240
|
params.put("createtime", YtDateTimeUtils.formate(alarmInfo.getCreateTs()));
|
240
|
241
|
info.setParams(params);
|
|
242
|
+ info.setTemplatePurpose(MsgTemplatePurposeEnum.FOR_ALARM_NOTICE.name());
|
241
|
243
|
contacts.stream().parallel().forEach(item -> {
|
242
|
244
|
if (!item.getWechat().isEmpty()) {
|
243
|
245
|
info.setPhoneNumbers(item.getWechat());
|
...
|
...
|
|