From 16b0e4f8c9035d2ea9fcecef2ee6b67dc1a570f0 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Thu, 8 Sep 2022 23:35:07 +0800 Subject: [PATCH] socket --- .../service/impl/EpdcEventsServiceImpl.java | 2 ++ .../epdc/modules/item/service/ItemService.java | 10 ++++++++++ .../item/service/impl/ItemServiceImpl.java | 15 +++++++++++++++ .../constants/MenuCodeConstant.java | 5 +++++ 4 files changed, 32 insertions(+) diff --git a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/events/service/impl/EpdcEventsServiceImpl.java b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/events/service/impl/EpdcEventsServiceImpl.java index 784924a02..5bd7b3d5e 100644 --- a/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/events/service/impl/EpdcEventsServiceImpl.java +++ b/esua-epdc/epdc-module/epdc-events/epdc-events-server/src/main/java/com/elink/esua/epdc/modules/events/service/impl/EpdcEventsServiceImpl.java @@ -465,6 +465,8 @@ public class EpdcEventsServiceImpl extends BaseServiceImpl { */ void sendItemHandleMenuNoticeReject(Long deptId, Long userId); + /** + * 项目处理发送菜单消息-结案 + * + * @return void + * @params [deptId] + * @author liuchuang + * @since 2019/10/30 9:12 + */ + void sendItemHandleMenuNoticeExamine(Long deptId, Long userId); + /** * 项目处理发送菜单消息-吹哨部门 * 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 23f973e23..c052a6e11 100755 --- 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 @@ -1479,6 +1479,21 @@ public class ItemServiceImpl extends BaseServiceImpl implem newsTask.eventMenuNotice(menuNoticeDTO, userId); } + @Override + public void sendItemHandleMenuNoticeExamine(Long deptId, Long userId) { + // 获取部门待处理项目数量 +// int num = baseDao.selectCountOfItemDeptNotice(deptId, EventIssueItemState.ITEM_HANDLING); + Map params = new HashMap<>(); + params.put("itemState","0"); + PageData page = getExaminePage(params); + MenuNoticeDTO menuNoticeDTO = new MenuNoticeDTO(); + menuNoticeDTO.setDeptId(deptId); + menuNoticeDTO.setNum(page.getTotal()); + menuNoticeDTO.setMenuCode(MenuCodeConstant.PARTY_GROUP_DISCUSSION_ITEM_HANDLE_EXAMINE); + // 发送菜单消息通知 + newsTask.eventMenuNotice(menuNoticeDTO, userId); + } + @Override public void sendWhistlingDeptItemHandleMenuNotice(List deptIds, Long userId) { MenuNoticeDTO menuNoticeDTO = new MenuNoticeDTO(); diff --git a/esua-epdc/epdc-module/epdc-websocket/epdc-websocket-client/src/main/java/com.elink.esua.epdc/constants/MenuCodeConstant.java b/esua-epdc/epdc-module/epdc-websocket/epdc-websocket-client/src/main/java/com.elink.esua.epdc/constants/MenuCodeConstant.java index 31fe292ea..06b5c9b8b 100644 --- a/esua-epdc/epdc-module/epdc-websocket/epdc-websocket-client/src/main/java/com.elink.esua.epdc/constants/MenuCodeConstant.java +++ b/esua-epdc/epdc-module/epdc-websocket/epdc-websocket-client/src/main/java/com.elink.esua.epdc/constants/MenuCodeConstant.java @@ -29,4 +29,9 @@ public interface MenuCodeConstant { */ String PARTY_GROUP_DISCUSSION_ITEM_HANDLE_REJECT = "item-handle-reject"; + /** + * 党群议事-项目管理-待处理项目-结案 + */ + String PARTY_GROUP_DISCUSSION_ITEM_HANDLE_EXAMINE = "item-handle-examine"; + }