wsm-添加适配会签任务内再次会签的变量获取方法

This commit is contained in:
wsm
2026-05-07 10:36:05 +08:00
parent d53bdebe5a
commit 9153beee61
9 changed files with 104 additions and 1 deletions
@@ -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();
}