!209 RemoteUserServiceImpl中selectListByIds和selectUserIdsByRoleIds方法新增判空

* 删除多余依赖
* 改成ArrayList
* 查询前判空
dev
miracle-bean 11 months ago committed by 疯狂的狮子Li
parent fbfb0f7195
commit e129035b56

@ -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);
}

Loading…
Cancel
Save