|
|
|
@ -327,7 +327,7 @@ public class WaterServiceImpl implements IWaterService {
|
|
|
|
|
*/ |
|
|
|
|
private List<HzimsAnalyzeModelStationEntity> getModelStationList() { |
|
|
|
|
// 水利站点(All)
|
|
|
|
|
List<StationEntity> stationList = stationService.getStationType(HomePageConstant.HYDROPOWER_SERVETYPE, null, null,true); |
|
|
|
|
List<StationEntity> stationList = stationService.getStationType(HomePageConstant.HYDROPOWER_SERVETYPE, null, null,false); |
|
|
|
|
if(CollectionUtil.isEmpty(stationList)){ |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
@ -827,7 +827,7 @@ public class WaterServiceImpl implements IWaterService {
|
|
|
|
|
@Override |
|
|
|
|
public WaterConservancyVo waterConservancy(Long deptId) { |
|
|
|
|
// 查询水利站点
|
|
|
|
|
List<StationEntity> stations = stationService.getHomeStationList(deptId, HomePageConstant.waterList, HomePageConstant.HYDROPOWER_SERVETYPE,true); |
|
|
|
|
List<StationEntity> stations = stationService.getHomeStationList(deptId, HomePageConstant.waterList, HomePageConstant.HYDROPOWER_SERVETYPE,false); |
|
|
|
|
if (CollectionUtil.isEmpty(stations)) { |
|
|
|
|
return new WaterConservancyVo(); |
|
|
|
|
} |
|
|
|
@ -888,7 +888,7 @@ public class WaterServiceImpl implements IWaterService {
|
|
|
|
|
public List<WaterDetailsVo> waterDetails(Long deptId) { |
|
|
|
|
// 获取区域map : key-区域机构 value-水利站点集合
|
|
|
|
|
// 获取区域或者站点map结构
|
|
|
|
|
Map<Dept,List<StationEntity>> map = areaService.areaOrStaion(deptId,HomePageConstant.waterList,true); |
|
|
|
|
Map<Dept,List<StationEntity>> map = areaService.areaOrStaion(deptId,HomePageConstant.waterList,false); |
|
|
|
|
if(MapUtils.isEmpty(map)){ |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
@ -933,7 +933,7 @@ public class WaterServiceImpl implements IWaterService {
|
|
|
|
|
@Override |
|
|
|
|
public List<WaterRankingVo> waterUseEleRanking(Long deptId) { |
|
|
|
|
// 获取区域map : key-区域机构 value-水利站点集合
|
|
|
|
|
Map<Dept,List<StationEntity>> map = areaService.areaOrStaion(deptId,HomePageConstant.waterList,true); |
|
|
|
|
Map<Dept,List<StationEntity>> map = areaService.areaOrStaion(deptId,HomePageConstant.waterList,false); |
|
|
|
|
if(MapUtils.isEmpty(map)){ |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
@ -1002,7 +1002,7 @@ public class WaterServiceImpl implements IWaterService {
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
// 获取水利站点
|
|
|
|
|
List<StationEntity> stationList = stationService.getStationList(R.getData(),deptId,HomePageConstant.waterList,HomePageConstant.HYDROPOWER_SERVETYPE,true); |
|
|
|
|
List<StationEntity> stationList = stationService.getStationList(R.getData(),deptId,HomePageConstant.waterList,HomePageConstant.HYDROPOWER_SERVETYPE,false); |
|
|
|
|
if(CollectionUtil.isEmpty(stationList)){ |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
@ -1062,7 +1062,7 @@ public class WaterServiceImpl implements IWaterService {
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
// 获取水利站点
|
|
|
|
|
List<StationEntity> stationList = stationService.getStationList(R.getData(),deptId,HomePageConstant.waterList,HomePageConstant.HYDROPOWER_SERVETYPE,true); |
|
|
|
|
List<StationEntity> stationList = stationService.getStationList(R.getData(),deptId,HomePageConstant.waterList,HomePageConstant.HYDROPOWER_SERVETYPE,false); |
|
|
|
|
if(CollectionUtil.isEmpty(stationList)){ |
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|