|
@ -144,8 +144,14 @@ public class WorkUserServiceImpl implements WorkUserService { |
|
|
public Result<Integer> getUnauthorizedAmount(EpdcUnauthorizedAmountFromDTO fromDto) { |
|
|
public Result<Integer> getUnauthorizedAmount(EpdcUnauthorizedAmountFromDTO fromDto) { |
|
|
if (null == fromDto.getGridId()) { |
|
|
if (null == fromDto.getGridId()) { |
|
|
UserDetail user = SecurityUser.getUser(); |
|
|
UserDetail user = SecurityUser.getUser(); |
|
|
|
|
|
List<Long> deptIdList = user.getDeptIdList(); |
|
|
|
|
|
if(deptIdList != null && deptIdList.size() > 0){ |
|
|
fromDto.setGridIdList(user.getDeptIdList()); |
|
|
fromDto.setGridIdList(user.getDeptIdList()); |
|
|
|
|
|
}else { |
|
|
|
|
|
throw new RenException("用户信息有误,请重新登陆"); |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
return userFeignClient.getUnauthorizedAmount(fromDto); |
|
|
return userFeignClient.getUnauthorizedAmount(fromDto); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|