From 3ce0c520cd6fe80465be2f53eb8ea626a0484610 Mon Sep 17 00:00:00 2001 From: new_new_new <8454518+new-twice@user.noreply.gitee.com> Date: Thu, 11 Jun 2026 07:50:37 +0000 Subject: [PATCH] =?UTF-8?q?!40=20feat(inspectcloseout):=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E5=85=9A=E7=BE=A4=E9=83=A8=E9=97=A8=E6=B5=81=E7=A8=8B?= =?UTF-8?q?=E8=A1=A8=E8=BE=BE=E5=BC=8F=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(inspectcloseout): 新增党群部门流程表达式方法 --- .../InspectCloseoutConstant.java | 2 ++ .../inspectcloseout/InspectCloseoutFlow.java | 21 +++++++++++++++++++ 2 files changed, 23 insertions(+) diff --git a/jeecg-boot-module/jeecg-module-flow/src/main/java/org/jeecg/inspectcloseout/InspectCloseoutConstant.java b/jeecg-boot-module/jeecg-module-flow/src/main/java/org/jeecg/inspectcloseout/InspectCloseoutConstant.java index 8426bb7..4d8d5b6 100644 --- a/jeecg-boot-module/jeecg-module-flow/src/main/java/org/jeecg/inspectcloseout/InspectCloseoutConstant.java +++ b/jeecg-boot-module/jeecg-module-flow/src/main/java/org/jeecg/inspectcloseout/InspectCloseoutConstant.java @@ -6,5 +6,7 @@ public class InspectCloseoutConstant { public static final String JJ_DEPT_WORKER_ROLE_ID = "2047511967494213633"; public static final String SLD_DEPT_ID = "2044677562460508161"; public static final String SLD_JWSJ_ROLE_ID = "2063902766943363073"; + public static final String DQ_DEPT_ID = "2044677628281720834"; + public static final String DQ_DEPT_WORKER_ROLE_ID = "2047511967494213633"; public static final int ZERO_INDEX = 0; } diff --git a/jeecg-boot-module/jeecg-module-flow/src/main/java/org/jeecg/inspectcloseout/InspectCloseoutFlow.java b/jeecg-boot-module/jeecg-module-flow/src/main/java/org/jeecg/inspectcloseout/InspectCloseoutFlow.java index 1dfc91e..d854a7f 100644 --- a/jeecg-boot-module/jeecg-module-flow/src/main/java/org/jeecg/inspectcloseout/InspectCloseoutFlow.java +++ b/jeecg-boot-module/jeecg-module-flow/src/main/java/org/jeecg/inspectcloseout/InspectCloseoutFlow.java @@ -110,6 +110,27 @@ public class InspectCloseoutFlow { return targetUser; } + //流程表达式内用法 ${inspectCloseoutFlow.getDqDeptLdUserIdList()} + public List getDqDeptLdUserIdList() { + log.info("【巡视整改销号-流程表达式】查询部门角色用户列表, deptId: {}, roleId: {}", InspectCloseoutConstant.DQ_DEPT_ID, InspectCloseoutConstant.DQ_DEPT_WORKER_ROLE_ID); + List userList = iSysBaseAPI.getUsersListByDeptIdAndRoleIdLocalApi( + InspectCloseoutConstant.DQ_DEPT_ID, + InspectCloseoutConstant.DQ_DEPT_WORKER_ROLE_ID + ); + log.info("【巡视整改销号-流程表达式】查询到用户列表, userList: {}", userList); + return userList; + } + + //流程表达式内用法 ${inspectCloseoutFlow.getDqDeptLdUserIdListLength()} + public int getDqDeptLdUserIdListLength() { + List dqDeptLdUserIdList = this.getDqDeptLdUserIdList(); + if (dqDeptLdUserIdList != null && !dqDeptLdUserIdList.isEmpty()) { + return dqDeptLdUserIdList.size(); + } + log.error("【巡视整改销号-流程表达式】DQ部门WORKER角色没有对应用户"); + return 0; + } + //流程表达式内用法 ${inspectCloseoutFlow.getJJDeptLdWorkerIdListLength()} public int getJJDeptLdWorkerIdListLength() { List jjDeptLdUserIdList = this.getJJDeptLdUserIdList();