Commit 5175d81e authored by tangwei's avatar tangwei

修改电站数据

parent fd48fe02
...@@ -109,7 +109,9 @@ public class SofarDataAcquisitionServiceImpl implements SofarDataAcquisitionServ ...@@ -109,7 +109,9 @@ public class SofarDataAcquisitionServiceImpl implements SofarDataAcquisitionServ
Map<String, JpStation> bodyparam=new HashMap<>(); Map<String, JpStation> bodyparam=new HashMap<>();
if(jpStations!=null&&jpStations.size()>0){ if(jpStations!=null&&jpStations.size()>0){
bodyparam = jpStations.stream().collect(Collectors.toMap(JpStation::getThirdStationId, Function.identity())); for (JpStation jpStation : jpStations) {
bodyparam.put(jpStation.getThirdStationId(),jpStation);
}
} }
......
...@@ -130,7 +130,9 @@ public class SunlightServiceImpl implements SunlightService { ...@@ -130,7 +130,9 @@ public class SunlightServiceImpl implements SunlightService {
Map<String, JpStation> bodyparam=new HashMap<>(); Map<String, JpStation> bodyparam=new HashMap<>();
if(jpStations!=null&&jpStations.size()>0){ if(jpStations!=null&&jpStations.size()>0){
bodyparam = jpStations.stream().collect(Collectors.toMap(JpStation::getThirdStationId,Function.identity())); for (JpStation jpStation : jpStations) {
bodyparam.put(jpStation.getThirdStationId(),jpStation);
}
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment