提交 ff41ba63 authored 作者: hzh's avatar hzh

代码优化

上级 3f22aa38
...@@ -64,6 +64,7 @@ public class SysUserServiceImpl implements ISysUserService { ...@@ -64,6 +64,7 @@ public class SysUserServiceImpl implements ISysUserService {
private final SysUserRoleMapper userRoleMapper; private final SysUserRoleMapper userRoleMapper;
private final SysUserPostMapper userPostMapper; private final SysUserPostMapper userPostMapper;
private final SysTenantMapper sysTenantMapper; private final SysTenantMapper sysTenantMapper;
private final SysUserProjectMapper sysUserProjectMapper;
@DubboReference @DubboReference
private RemoteServerService remoteServerService; private RemoteServerService remoteServerService;
...@@ -185,6 +186,10 @@ public class SysUserServiceImpl implements ISysUserService { ...@@ -185,6 +186,10 @@ public class SysUserServiceImpl implements ISysUserService {
wrapper.likeRight("u.user_type", user.getUserType()); wrapper.likeRight("u.user_type", user.getUserType());
} }
} }
if (params.get("excludeProjectId") != null) {
List<SysUserProject> supList = sysUserProjectMapper.selectList(SysUserProject::getProjectId, params.get("excludeProjectId"));
wrapper.notIn("u.user_id", CollectionUtils.isEmpty(supList) ? List.of(-1L) : StreamUtils.toList(supList, SysUserProject::getUserId));
}
return wrapper; return wrapper;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论