Commit 1db128e4 authored by 周健威's avatar 周健威

添加地区、卫星传感器列表等

parent 73ec3fa0
...@@ -36,11 +36,11 @@ public class RscpImagePriceController extends BaseController<RscpImagePriceBiz, ...@@ -36,11 +36,11 @@ public class RscpImagePriceController extends BaseController<RscpImagePriceBiz,
String key = ""; String key = "";
List<String> satelliteTypes = list.parallelStream().map(RscpImagePrice::getImageSatelliteType).collect(Collectors.toList()); List<String> satelliteTypes = list.parallelStream().map(RscpImagePrice::getImageSatelliteType).collect(Collectors.toList());
for(String satelliteType : satelliteTypes) { for(String satelliteType : satelliteTypes) {
List<RscpImagePrice> imagePrices = list.parallelStream().filter(rscpImagePrice -> satelliteType.equals(rscpImagePrice.getImageSatelliteType())).collect(Collectors.toList()); List<RscpImagePrice> imagePriceList = list.parallelStream().filter(rscpImagePrice -> satelliteType.equals(rscpImagePrice.getImageSatelliteType())).collect(Collectors.toList());
imagePriceVOS.add(new ImagePriceVO(){{ imagePriceVOS.add(new ImagePriceVO(){{
setImageSatelliteType(satelliteType); setImageSatelliteType(satelliteType);
setSatelliteName(imagePrices.get(0).getSatelliteName()); setSatelliteName(imagePriceList.get(0).getSatelliteName());
setImagePrices(imagePrices); setImagePrices(imagePriceList);
}}); }});
} }
......
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