| | |
| | | return BeanCopyUtils.copyBean(userInfo, UserInfoDomainDTO.class); |
| | | } |
| | | |
| | | @Override |
| | | public List<UserInfoDomainDTO> getUserInfoByIds(List<Long> evaluateUserIds, String info) { |
| | | if (ObjectUtils.isEmpty(evaluateUserIds)){ |
| | | throw new BusinessException(this.getClass(), ResultCode.PARAM_ERROR_NULL.getCode(), "请求参数不能为空"); |
| | | } |
| | | |
| | | List<User> userInfoByIds = userRepository.getUserInfoByIds(evaluateUserIds); |
| | | |
| | | if (ObjectUtils.isEmpty(userInfoByIds)){ |
| | | throw new BusinessException(this.getClass(), ResultCode.PARAM_ERROR.getCode(), info + "不存在,请检查是否输入有误或人员已被删除"); |
| | | } |
| | | return BeanCopyUtils.copyBeanList(userInfoByIds, UserInfoDomainDTO.class); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 清除REDIS缓存的用户数据 |