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();