This commit is contained in:
2023-06-25 11:20:17 +08:00
parent 08da801286
commit 195224382f
4 changed files with 5 additions and 6 deletions

View File

@@ -311,7 +311,6 @@ public class AMapServiceImpl implements AMapService {
info.setEquipmentID(pileBasicInfo.getSn());
info.setManufacturerName("举视");
// 查询型号
// PileModelInfoVO modelInfo = pileModelInfoService.getPileModelInfoByPileSn(pileBasicInfo.getSn());
PileModelInfoVO modelInfo = pileModelInfoService.getPileModelInfoByModelId(pileBasicInfo.getModelId());
info.setEquipmentType(Integer.parseInt(modelInfo.getSpeedType()));
@@ -351,7 +350,7 @@ public class AMapServiceImpl implements AMapService {
aMapConnectorInfo.setVoltageLowerLimits(0);
aMapConnectorInfo.setVoltageUpperLimits(Integer.parseInt(connectorInfoVO.getRatedVoltage()));
aMapConnectorInfo.setCurrent(Integer.parseInt(connectorInfoVO.getRatedCurrent()));
aMapConnectorInfo.setPower(new BigDecimal(connectorInfoVO.getRatedPower()).setScale(1, BigDecimal.ROUND_HALF_UP));
aMapConnectorInfo.setPower(new BigDecimal(connectorInfoVO.getRatedPower()).setScale(1, RoundingMode.HALF_UP));
aMapConnectorInfo.setNationalStandard(2);
aMapConnectorInfo.setBrandDesc("举视");