Commit 985e3363e7045caa56067cd8bf942f92ddbc6a74
1 parent
50aaf1ae
修复角色判断逻辑,移除多余的类型转换
Showing
1 changed file
with
1 additions
and
1 deletions
sl-express-ms-web-courier/src/main/java/com/sl/ms/web/courier/service/impl/UserServiceImpl.java
| ... | ... | @@ -82,7 +82,7 @@ public class UserServiceImpl implements UserService { |
| 82 | 82 | |
| 83 | 83 | //4.筛选出今天同网点的有排班的其他快递员,并封装为vo |
| 84 | 84 | List<UserSimpleInfoVO> userSimpleInfoVOList = workSchedulingDTOList.stream() |
| 85 | - .filter(x -> ObjectUtil.equal(x.getUserType().intValue(), WorkUserTypeEnum.COURIER.getCode())//快递员角色 | |
| 85 | + .filter(x -> ObjectUtil.equal(x.getUserType(), WorkUserTypeEnum.COURIER.getCode())//快递员角色 | |
| 86 | 86 | && ObjectUtil.notEqual(x.getUserId(), userDTO.getId()))//不是当前快递员 |
| 87 | 87 | .map(x -> BeanUtil.toBean(x, UserSimpleInfoVO.class)) |
| 88 | 88 | .collect(Collectors.toList()); | ... | ... |