🐛 Fixing a bug. 工作流按角色会签用户为空错误

This commit is contained in:
lbw committed 2023-09-28 12:15:49 +08:00
1 parent 8a0187c652
commit 49b4152653
1 file changed
+1 -1
@@ -521,7 +521,7 @@ public class SysUserServiceImpl extends ServiceImpl<SysUserMapper, SysUser> impl
public List<Long> listUserIdByRoleIds(List<Long> roleIdList) {
return sysUserRoleMapper.selectList(Wrappers.<SysUserRole>lambdaQuery().in(SysUserRole::getRoleId, roleIdList))
.stream()
.map(SysUserRole::getRoleId)
.map(SysUserRole::getUserId)
.collect(Collectors.toList());
}