Browse Source

#水电站bug解决

zhongwei
yang_shj 1 year ago
parent
commit
68b39e911e
  1. 2
      hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java

2
hzims-service/hzims-scheduled/src/main/java/com/hnac/hzims/scheduled/service/operation/home/impl/RealTargetServiceImpl.java

@ -135,7 +135,7 @@ public class RealTargetServiceImpl implements RealTargetService {
// 站点设置 // 站点设置
if(CollectionUtil.isNotEmpty(stations)){ if(CollectionUtil.isNotEmpty(stations)){
List<StationEntity> list = stations.stream().filter(o->item.getCreateDept().equals(o.getRefDept())).collect(Collectors.toList()); List<StationEntity> list = stations.stream().filter(o->item.getCreateDept().equals(o.getRefDept())).collect(Collectors.toList());
if(CollectionUtil.isEmpty(list)){ if(CollectionUtil.isNotEmpty(list)){
item.setStationCode(list.get(0).getCode()); item.setStationCode(list.get(0).getCode());
item.setStationName(list.get(0).getName()); item.setStationName(list.get(0).getName());
} }

Loading…
Cancel
Save