消息修改
This commit is contained in:
+6
-6
@@ -3070,8 +3070,8 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
List<SysUser> userList = sysUserMapper.getUserListByNames(StringUtils.join(userNameListTemp, ","));
|
List<SysUser> userList = sysUserMapper.getUserListByNames(StringUtils.join(userNameListTemp, ","));
|
||||||
List<String> userIdList = userList.stream().map(SysUser::getId).collect(Collectors.toList());
|
List<String> userIdList = userList.stream().map(SysUser::getId).collect(Collectors.toList());
|
||||||
List<String> thirdIdList = userList.stream().map(SysUser::getThirdId).collect(Collectors.toList());
|
List<String> thirdIdList = userList.stream().map(SysUser::getThirdId).collect(Collectors.toList());
|
||||||
String content = "新标准编号已实施,请注意更新替代标准编号:" + StringUtils.join(serialNumberList, ",") + "的状态";
|
String content = "New numbering implemented, please note update status of alternate numbering " + StringUtils.join(serialNumberList, ",");
|
||||||
String contentInfo = "新标准编号已实施,请注意更新替代标准编号:" + sbStr + "的状态," + "链接: http://localhost:3000/docManage/library";
|
String contentInfo = "New numbering implemented, please note update status of alternate numbering " + sbStr;
|
||||||
//封装消息的实体类
|
//封装消息的实体类
|
||||||
SysAnnouncement sysAnnouncement = getSysAnnouncement(userIdList, content, contentInfo);
|
SysAnnouncement sysAnnouncement = getSysAnnouncement(userIdList, content, contentInfo);
|
||||||
sysAnnouncementService.saveAnnouncement(sysAnnouncement);
|
sysAnnouncementService.saveAnnouncement(sysAnnouncement);
|
||||||
@@ -3086,7 +3086,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
list.add(serialNumber);
|
list.add(serialNumber);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
String contentTemp = StringUtils.join(list, ",")+"已被其他标准代替,请注意更新"+StringUtils.join(list, ",") + "的状态";
|
String contentTemp = StringUtils.join(list, ",")+"Has been replaced by other standards, please pay attention to update "+StringUtils.join(list, ",");
|
||||||
iFeishuService.batchSendMessage(thirdIdList.toArray(new String[]{}), contentTemp, MessageTypeEnum.PUSH.getName(), s);
|
iFeishuService.batchSendMessage(thirdIdList.toArray(new String[]{}), contentTemp, MessageTypeEnum.PUSH.getName(), s);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
@@ -4495,8 +4495,8 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
|
|
||||||
|
|
||||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||||
String content = sysUser.getUsername() + " pushed " + StringUtils.join(serialNumberList, ",") + "Please pay attention to check.";
|
String content = sysUser.getUsername() + " pushed " + StringUtils.join(serialNumberList, ",") + " to you, Please pay attention to check.";
|
||||||
String contentInfo = sysUser.getUsername() + " pushed " + StringUtils.join(hrefList, ",") + "Please pay attention to check.";
|
String contentInfo = sysUser.getUsername() + " pushed " + StringUtils.join(hrefList, ",") + " to you, Please pay attention to check.";
|
||||||
//封装消息的实体类
|
//封装消息的实体类
|
||||||
SysAnnouncement sysAnnouncement = getSysAnnouncement(userIdList, content, contentInfo);
|
SysAnnouncement sysAnnouncement = getSysAnnouncement(userIdList, content, contentInfo);
|
||||||
sysAnnouncementService.saveAnnouncement(sysAnnouncement);
|
sysAnnouncementService.saveAnnouncement(sysAnnouncement);
|
||||||
@@ -4511,7 +4511,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl<BussDocumentLi
|
|||||||
list.add(serialNumber);
|
list.add(serialNumber);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
String contentTemp = sysUser.getUsername() + " pushed " + StringUtils.join(list, ",") + ",Please pay attention to check.";
|
String contentTemp = sysUser.getUsername() + " pushed " + StringUtils.join(list, ",") + " to you, Please pay attention to check.";
|
||||||
iFeishuService.batchSendMessage(thirdIdList.toArray(new String[]{}), contentTemp, MessageTypeEnum.PUSH.getName(), s);
|
iFeishuService.batchSendMessage(thirdIdList.toArray(new String[]{}), contentTemp, MessageTypeEnum.PUSH.getName(), s);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user