审批流修复

This commit is contained in:
hongchao 2025-08-14 11:31:53 +08:00
parent aeb6f957e0
commit d195153152
1 changed files with 5 additions and 1 deletions

View File

@ -204,10 +204,14 @@ public class SysWorkflowNodeServiceImpl implements SysWorkflowNodeService {
for (String forRoleId : roleIdArray) {
List<SysUserRoleVo> userList = bmUserRoleMapper.getUserRoleListByDeptId(SecurityUtils.getLoginUser().getSysUser().getDeptId(), Long.valueOf(forRoleId));
if (!userList.isEmpty()) {
// 如果不是第一次拼接先添加逗号分隔
if (roleConfigValues.length() > 0) {
roleConfigValues.append(",");
}
roleConfigValues.append(userList.stream().map(user -> String.valueOf(user.getUserId())).collect(Collectors.joining(",")));
}
}
forSysWorkflowNode.setConfigValues(String.valueOf(roleConfigValues));
forSysWorkflowNode.setConfigValues(roleConfigValues.toString());
} else {
System.err.println("节点配置角色为空!请检查参数");
}