mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-04-23 02:48:34 +08:00
!209 RemoteUserServiceImpl中selectListByIds和selectUserIdsByRoleIds方法新增判空
* 删除多余依赖 * 改成ArrayList * 查询前判空
This commit is contained in:
@@ -310,6 +310,9 @@ public class RemoteUserServiceImpl implements RemoteUserService {
|
||||
*/
|
||||
@Override
|
||||
public List<RemoteUserVo> selectListByIds(List<Long> userIds) {
|
||||
if (CollUtil.isEmpty(userIds)) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
List<SysUserVo> sysUserVos = userService.selectUserByIds(userIds, null);
|
||||
return MapstructUtils.convert(sysUserVos, RemoteUserVo.class);
|
||||
}
|
||||
@@ -322,6 +325,9 @@ public class RemoteUserServiceImpl implements RemoteUserService {
|
||||
*/
|
||||
@Override
|
||||
public List<Long> selectUserIdsByRoleIds(List<Long> roleIds) {
|
||||
if (CollUtil.isEmpty(roleIds)) {
|
||||
return new ArrayList<>();
|
||||
}
|
||||
return userService.selectUserIdsByRoleIds(roleIds);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user