wsm-添加适配会签任务内再次会签的变量获取方法
This commit is contained in:
@@ -29,5 +29,7 @@ public class XiSpeakConfig {
|
||||
private String implDeptKey;
|
||||
/** 对应impl-dept-collection-used*/
|
||||
private String implDeptCollectionUsedKey;
|
||||
/** 对应sdw-role-id*/
|
||||
private String sdwRoleId;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,6 +40,26 @@ public class XiSpeakFlow {
|
||||
return userList;
|
||||
}
|
||||
|
||||
public List<String> getSDWLeader() {
|
||||
// 1. 安全获取配置,防止 NPE
|
||||
XiSpeakConfig.XiSpeakProperties props = xiSpeakConfig.getXiSpeak();
|
||||
if (props == null || !StringUtils.hasText(props.getSdwRoleId())) {
|
||||
log.error("流程配置缺失: [flow-biz.xi-speak.sdw-role-id] 未在 YAML 中定义");
|
||||
return Collections.emptyList();
|
||||
}
|
||||
|
||||
// 2. 调用接口获取数据
|
||||
log.info("正在查询sdw:{}角色下的用户列表",props.getSdwRoleId());
|
||||
List<String> userList = iSysBaseAPI.getUserByRoleIdLocalApi(props.getSdwRoleId());
|
||||
log.info("查询到的用户为: {}", userList);
|
||||
return userList;
|
||||
}
|
||||
|
||||
public int getSDWLeaderLength() {
|
||||
return this.getSDWLeader().size();
|
||||
}
|
||||
|
||||
|
||||
public int getBgDeptLdUserIdListLength() {
|
||||
return getBgDeptLdUserIdList().size();
|
||||
}
|
||||
|
||||
@@ -6,3 +6,4 @@ flow-biz:
|
||||
json-data-key: "json_data"
|
||||
impl-dept-key: "implDept"
|
||||
impl-dept-collection-used-key: "impl_dept_id"
|
||||
sdw-role-id: "2044676455280570370"
|
||||
|
||||
Reference in New Issue
Block a user