diff --git a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/service/impl/EmInfoServiceImpl.java b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/service/impl/EmInfoServiceImpl.java index 98a220a..fdfe2df 100644 --- a/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/service/impl/EmInfoServiceImpl.java +++ b/hzims-service/equipment/src/main/java/com/hnac/hzims/equipment/service/impl/EmInfoServiceImpl.java @@ -1003,12 +1003,10 @@ public class EmInfoServiceImpl extends BaseServiceImpl select(Long deptId) { if(ObjectUtil.isEmpty(deptId)){ - return this.list(Wrappers.lambdaQuery() - .in(EmInfoEntity::getEmType, "2")); + return this.list(); } return this.list(Wrappers.lambdaQuery() - .eq(EmInfoEntity::getDepartment,deptId) - .eq(EmInfoEntity::getEmType, "2") + .like(EmInfoEntity::getDepartment,deptId) ); } diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/WaterServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/WaterServiceImpl.java index 1bbd7f3..924c6d2 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/WaterServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/WaterServiceImpl.java @@ -1061,15 +1061,12 @@ public class WaterServiceImpl implements IWaterService { if(MapUtils.isEmpty(rainMap)){ return new ArrayList<>(); } - R> depts = sysClient.getDeptChild(deptId); - if (!depts.isSuccess() || ObjectUtil.isEmpty(depts.getData())) { + R> R = sysClient.getDeptByCurrentUser(); + if (!R.isSuccess() || ObjectUtil.isEmpty(R.getData())) { return new ArrayList<>(); } // 获取水利站点 - List stations = stationService.list(Wrappers.lambdaQuery() - .in(StationEntity::getRefDept,depts.getData().stream().map(Dept::getId).collect(Collectors.toList())) - .in(StationEntity::getType,HomePageConstant.waterList) - .eq(StationEntity::getServeType,HomePageConstant.HYDROPOWER_SERVETYPE)); + List stations = stationService.getStationList(R.getData(),deptId,HomePageConstant.waterList,HomePageConstant.HYDROPOWER_SERVETYPE,false); if(CollectionUtil.isEmpty(stations)){ return new ArrayList<>(); }