From abc80ca9c66b8c0b674730a13f4bece4318e72bc Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Tue, 31 May 2022 16:04:25 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A3=9E=E4=B9=A6=E6=B6=88=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/BussDocumentLibraryEOServiceImpl.java | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) 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("文档新增飞书消息推送失败"); }