mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-07-02 04:57:57 +08:00
update
This commit is contained in:
@@ -22,10 +22,10 @@ public class AMapDiscountPriceChargingInfo {
|
|||||||
// 只填数字或数字区间,单位:元/度。
|
// 只填数字或数字区间,单位:元/度。
|
||||||
// 空表示未获取到价格,0.00表示免费
|
// 空表示未获取到价格,0.00表示免费
|
||||||
// 格式:保留四位小数
|
// 格式:保留四位小数
|
||||||
@JSONField(name = "DiscountTime")
|
@JSONField(name = "DiscountElectricityFee")
|
||||||
private BigDecimal discountElectricityFee;
|
private BigDecimal discountElectricityFee;
|
||||||
|
|
||||||
// 站点服务费优惠价
|
// 站点服务费优惠价
|
||||||
@JSONField(name = "DiscountTime")
|
@JSONField(name = "DiscountServiceFee")
|
||||||
private BigDecimal discountServiceFee;
|
private BigDecimal discountServiceFee;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -153,9 +153,9 @@ public class AMapServiceImpl implements AMapService {
|
|||||||
Map<String, List<AMapEquipmentInfo>> equipmentInfoMap = getPileListByStationIdList(stationIdList);
|
Map<String, List<AMapEquipmentInfo>> equipmentInfoMap = getPileListByStationIdList(stationIdList);
|
||||||
|
|
||||||
// 拼装数据
|
// 拼装数据
|
||||||
List<AMapDiscountPriceChargingInfo> discountInfoList = new ArrayList<>();
|
List<AMapDiscountPriceChargingInfo> discountInfoList;
|
||||||
List<AMapPictures> picturesList = new ArrayList<>();
|
List<AMapPictures> picturesList;
|
||||||
AMapStationInfo aMapInfo = null;
|
AMapStationInfo aMapInfo;
|
||||||
for (PileStationInfo stationInfo : stationList) {
|
for (PileStationInfo stationInfo : stationList) {
|
||||||
aMapInfo = new AMapStationInfo();
|
aMapInfo = new AMapStationInfo();
|
||||||
String stationId = String.valueOf(stationInfo.getId());
|
String stationId = String.valueOf(stationInfo.getId());
|
||||||
@@ -191,6 +191,7 @@ public class AMapServiceImpl implements AMapService {
|
|||||||
aMapInfo.setEquipmentInfos(equipmentInfos);
|
aMapInfo.setEquipmentInfos(equipmentInfos);
|
||||||
// 站点充电优惠价格(目前无优惠措施)
|
// 站点充电优惠价格(目前无优惠措施)
|
||||||
AMapDiscountPriceChargingInfo info;
|
AMapDiscountPriceChargingInfo info;
|
||||||
|
discountInfoList = Lists.newArrayList();
|
||||||
for (AMapPriceChargingInfo aMapPriceChargingInfo : aMapPriceChargingInfos) {
|
for (AMapPriceChargingInfo aMapPriceChargingInfo : aMapPriceChargingInfos) {
|
||||||
info = new AMapDiscountPriceChargingInfo();
|
info = new AMapDiscountPriceChargingInfo();
|
||||||
info.setDiscountTime(aMapPriceChargingInfo.getFeeTime());
|
info.setDiscountTime(aMapPriceChargingInfo.getFeeTime());
|
||||||
@@ -201,18 +202,27 @@ public class AMapServiceImpl implements AMapService {
|
|||||||
}
|
}
|
||||||
aMapInfo.setDiscountPriceChargingInfo(discountInfoList);
|
aMapInfo.setDiscountPriceChargingInfo(discountInfoList);
|
||||||
|
|
||||||
AMapPictures pictures = new AMapPictures();
|
// 站点图片
|
||||||
if (StringUtils.isBlank(stationInfo.getPictures())) {
|
picturesList = Lists.newArrayList();
|
||||||
pictures.setPicID("");
|
AMapPictures aMapPictures;
|
||||||
pictures.setUrl("");
|
String pictures = stationInfo.getPictures();
|
||||||
pictures.setTitle("");
|
if (StringUtils.isNotBlank(pictures)) {
|
||||||
}else {
|
List<String> picList = Lists.newArrayList(pictures.split(","));
|
||||||
pictures.setPicID("001");
|
for (int i = 0; i < picList.size(); i++) {
|
||||||
pictures.setUrl(stationInfo.getPictures());
|
String s = picList.get(i);
|
||||||
pictures.setTitle("1");
|
aMapPictures = new AMapPictures();
|
||||||
|
aMapPictures.setUrl(s);
|
||||||
|
aMapPictures.setTitle(Constants.ONE);
|
||||||
|
aMapPictures.setPicID(String.valueOf(i + 1));
|
||||||
|
picturesList.add(aMapPictures);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
aMapPictures = new AMapPictures();
|
||||||
|
aMapPictures.setUrl("");
|
||||||
|
aMapPictures.setTitle("");
|
||||||
|
aMapPictures.setPicID("");
|
||||||
|
picturesList.add(aMapPictures);
|
||||||
}
|
}
|
||||||
picturesList.add(pictures);
|
|
||||||
|
|
||||||
aMapInfo.setPictures(picturesList);
|
aMapInfo.setPictures(picturesList);
|
||||||
|
|
||||||
int fastTotal = 0;
|
int fastTotal = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user