From 284f79d5b49344d482f640a73d548df2edc9fb05 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Wed, 14 Sep 2022 16:07:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E5=90=B9=E5=93=A8=E6=95=B0?= =?UTF-8?q?=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../epdc/modules/item/service/impl/ItemServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java index ffd53f2b..e803c910 100644 --- a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java +++ b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/item/service/impl/ItemServiceImpl.java @@ -1007,9 +1007,12 @@ public class ItemServiceImpl extends BaseServiceImpl implem for (Long deptId : deptIds) { // 获取吹哨部门待处理项目数量 - int num = baseDao.selectCountOfItemWhistlingDeptNotice(deptId); +// int num = baseDao.selectCountOfItemWhistlingDeptNotice(deptId); + Map params = new HashMap<>(); + params.put("itemState","0"); + PageData page = listOfItemsForPCEnd(params); menuNoticeDTO.setDeptId(deptId); - menuNoticeDTO.setNum(num); + menuNoticeDTO.setNum(page.getTotal()); // 发送菜单消息通知 newsTask.eventMenuNotice(menuNoticeDTO, userId); }