!40 feat(inspectcloseout): 新增党群部门流程表达式方法
* feat(inspectcloseout): 新增党群部门流程表达式方法
This commit is contained in:
+2
@@ -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;
|
||||
}
|
||||
|
||||
+21
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user