!40 feat(inspectcloseout): 新增党群部门流程表达式方法

* feat(inspectcloseout): 新增党群部门流程表达式方法
This commit is contained in:
new_new_new
2026-06-11 07:50:37 +00:00
parent 59bd76a250
commit 3ce0c520cd
2 changed files with 23 additions and 0 deletions
@@ -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;
}
@@ -110,6 +110,27 @@ public class InspectCloseoutFlow {
return targetUser;
}
//流程表达式内用法 ${inspectCloseoutFlow.getDqDeptLdUserIdList()}
public List<String> getDqDeptLdUserIdList() {
log.info("【巡视整改销号-流程表达式】查询部门角色用户列表, deptId: {}, roleId: {}", InspectCloseoutConstant.DQ_DEPT_ID, InspectCloseoutConstant.DQ_DEPT_WORKER_ROLE_ID);
List<String> 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<String> dqDeptLdUserIdList = this.getDqDeptLdUserIdList();
if (dqDeptLdUserIdList != null && !dqDeptLdUserIdList.isEmpty()) {
return dqDeptLdUserIdList.size();
}
log.error("【巡视整改销号-流程表达式】DQ部门WORKER角色没有对应用户");
return 0;
}
//流程表达式内用法 ${inspectCloseoutFlow.getJJDeptLdWorkerIdListLength()}
public int getJJDeptLdWorkerIdListLength() {
List<String> jjDeptLdUserIdList = this.getJJDeptLdUserIdList();