diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java index 41ea2a341..1cf88f954 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/document/service/impl/BussDocumentLibraryEOServiceImpl.java @@ -2967,6 +2967,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImplXXX对“GB 7258 进行了修改请及时查看”) //向订阅领域管理中订阅了该技术领域的人和文档库中订阅了该条文档的人发送消息 Map mapTemp = new HashMap<>(); @@ -2978,6 +2979,7 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl wrapper = new LambdaQueryWrapper<>(); wrapper.in(SysUser::getId,userIdList); List sysUserList = sysUserService.list(wrapper); + sysUserList = sysUserList.stream().filter(e->StringUtils.isNotBlank(e.getThirdId())).collect(Collectors.toList()); List thirdIdList = sysUserList.stream().map(SysUser::getThirdId).collect(Collectors.toList()); String id = (String) map.get("id"); @@ -2985,7 +2987,6 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl" + serialNumber + ""; - String url = backUrl + "/docManage/library/detail?id=" + id; if (StringUtils.isNotBlank(sbStr.toString())) { //您订阅的XXX已被修改 @@ -3002,8 +3003,10 @@ public class BussDocumentLibraryEOServiceImpl extends ServiceImpl", "").replaceAll("", ""); + String contentInfo = "In the " + category + serialNumber+" you subscribed to, "+sysUser.getUsername()+" changed the " + replace.toString(); + String url = backUrl + "/isps/userAnnouncement"; + iFeishuService.batchSendMessage(thirdIdList.toArray(new String[]{}), contentInfo, MessageTypeEnum.READ.getName(), url); } catch (IOException e) { log.error("文档新增飞书消息推送失败"); }