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:
@@ -158,7 +158,7 @@ public class AMapServiceImpl implements AMapService {
|
||||
aMapInfo = new AMapStationInfo();
|
||||
String stationId = String.valueOf(stationInfo.getId());
|
||||
aMapInfo.setStationID(stationId);
|
||||
aMapInfo.setOperatorID(String.valueOf(stationInfo.getMerchantId()));
|
||||
aMapInfo.setOperatorID(Constants.OPERATORID_LIANLIAN);
|
||||
aMapInfo.setEquipmentOwnerID(Constants.OPERATORID_LIANLIAN);
|
||||
aMapInfo.setOperatorName(Constants.JSOWELL);
|
||||
aMapInfo.setStationName(stationInfo.getStationName());
|
||||
@@ -403,8 +403,8 @@ public class AMapServiceImpl implements AMapService {
|
||||
for (String s : applyTime) {
|
||||
info = new AMapPriceChargingInfo();
|
||||
info.setFeeTime(s);
|
||||
info.setElectricityFee(billingDetailVO.getElectricityPrice());
|
||||
info.setServiceFee(billingDetailVO.getServicePrice());
|
||||
info.setElectricityFee(billingDetailVO.getElectricityPrice().setScale(4, BigDecimal.ROUND_HALF_UP));
|
||||
info.setServiceFee(billingDetailVO.getServicePrice().setScale(4, BigDecimal.ROUND_HALF_UP));
|
||||
priceList.add(info);
|
||||
}
|
||||
}
|
||||
@@ -436,7 +436,7 @@ public class AMapServiceImpl implements AMapService {
|
||||
PileModelInfoVO modelInfo = pileModelInfoService.getPileModelInfoByModelId(pileBasicInfo.getModelId());
|
||||
|
||||
info.setEquipmentType(Integer.parseInt(modelInfo.getSpeedType()));
|
||||
info.setPower(new BigDecimal(modelInfo.getRatedPower()).setScale(1, RoundingMode.HALF_UP));
|
||||
info.setPower(new BigDecimal(modelInfo.getRatedPower()).setScale(1, BigDecimal.ROUND_HALF_UP));
|
||||
|
||||
List<AMapConnectorInfo> aMapConnectorInfos = getConnectorListBySN(pileBasicInfo.getSn());
|
||||
|
||||
@@ -486,7 +486,7 @@ public class AMapServiceImpl implements AMapService {
|
||||
info.setEquipmentID(pileSn);
|
||||
info.setManufacturerName(Constants.JSOWELL);
|
||||
info.setEquipmentType(Integer.valueOf(pileInfoVO.getSpeedType()));
|
||||
info.setPower(new BigDecimal(pileInfoVO.getRatedPower()));
|
||||
info.setPower(new BigDecimal(pileInfoVO.getRatedPower()).setScale(1, BigDecimal.ROUND_HALF_UP));
|
||||
connectorInfos = Lists.newArrayList();
|
||||
for (PileInfoVO infoVO : value) {
|
||||
connectorInfo = new AMapConnectorInfo();
|
||||
|
||||
Reference in New Issue
Block a user