mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 高德地图
This commit is contained in:
@@ -153,6 +153,8 @@ public class AMapServiceImpl implements AMapService {
|
||||
Map<String, List<AMapEquipmentInfo>> equipmentInfoMap = getPileListByStationIdList(stationIdList);
|
||||
|
||||
// 拼装数据
|
||||
List<AMapDiscountPriceChargingInfo> discountInfoList = new ArrayList<>();
|
||||
List<AMapPictures> picturesList = new ArrayList<>();
|
||||
AMapStationInfo aMapInfo = null;
|
||||
for (PileStationInfo stationInfo : stationList) {
|
||||
aMapInfo = new AMapStationInfo();
|
||||
@@ -182,10 +184,31 @@ public class AMapServiceImpl implements AMapService {
|
||||
aMapInfo.setBusineHours(stationInfo.getBusinessHours());
|
||||
|
||||
// 计费模板
|
||||
aMapInfo.setPriceChargingInfo(priceInfoMap.get(stationId));
|
||||
List<AMapPriceChargingInfo> aMapPriceChargingInfos = priceInfoMap.get(stationId);
|
||||
aMapInfo.setPriceChargingInfo(aMapPriceChargingInfos);
|
||||
// 站点设备信息
|
||||
List<AMapEquipmentInfo> equipmentInfos = equipmentInfoMap.get(stationId);
|
||||
aMapInfo.setEquipmentInfos(equipmentInfos);
|
||||
// 站点充电优惠价格(目前无优惠措施)
|
||||
AMapDiscountPriceChargingInfo info;
|
||||
for (AMapPriceChargingInfo aMapPriceChargingInfo : aMapPriceChargingInfos) {
|
||||
info = new AMapDiscountPriceChargingInfo();
|
||||
info.setDiscountTime(aMapPriceChargingInfo.getFeeTime());
|
||||
info.setDiscountServiceFee(aMapPriceChargingInfo.getServiceFee());
|
||||
info.setDiscountElectricityFee(aMapPriceChargingInfo.getElectricityFee());
|
||||
|
||||
discountInfoList.add(info);
|
||||
}
|
||||
aMapInfo.setDiscountPriceChargingInfo(discountInfoList);
|
||||
|
||||
AMapPictures pictures = new AMapPictures();
|
||||
pictures.setPicID("001");
|
||||
pictures.setUrl(stationInfo.getPictures());
|
||||
pictures.setTitle("1");
|
||||
|
||||
picturesList.add(pictures);
|
||||
|
||||
aMapInfo.setPictures(picturesList);
|
||||
|
||||
int fastTotal = 0;
|
||||
int slowTotal = 0;
|
||||
|
||||
Reference in New Issue
Block a user