|
|
@ -1061,15 +1061,12 @@ public class WaterServiceImpl implements IWaterService { |
|
|
|
if(MapUtils.isEmpty(rainMap)){ |
|
|
|
if(MapUtils.isEmpty(rainMap)){ |
|
|
|
return new ArrayList<>(); |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
} |
|
|
|
R<List<Dept>> depts = sysClient.getDeptChild(deptId); |
|
|
|
R<List<Dept>> R = sysClient.getDeptByCurrentUser(); |
|
|
|
if (!depts.isSuccess() || ObjectUtil.isEmpty(depts.getData())) { |
|
|
|
if (!R.isSuccess() || ObjectUtil.isEmpty(R.getData())) { |
|
|
|
return new ArrayList<>(); |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
} |
|
|
|
// 获取水利站点
|
|
|
|
// 获取水利站点
|
|
|
|
List<StationEntity> stations = stationService.list(Wrappers.<StationEntity>lambdaQuery() |
|
|
|
List<StationEntity> stations = stationService.getStationList(R.getData(),deptId,HomePageConstant.waterList,HomePageConstant.HYDROPOWER_SERVETYPE,false); |
|
|
|
.in(StationEntity::getRefDept,depts.getData().stream().map(Dept::getId).collect(Collectors.toList())) |
|
|
|
|
|
|
|
.in(StationEntity::getType,HomePageConstant.waterList) |
|
|
|
|
|
|
|
.eq(StationEntity::getServeType,HomePageConstant.HYDROPOWER_SERVETYPE)); |
|
|
|
|
|
|
|
if(CollectionUtil.isEmpty(stations)){ |
|
|
|
if(CollectionUtil.isEmpty(stations)){ |
|
|
|
return new ArrayList<>(); |
|
|
|
return new ArrayList<>(); |
|
|
|
} |
|
|
|
} |
|
|
|