mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-05-15 07:18:31 +08:00
update
This commit is contained in:
@@ -207,8 +207,6 @@ public class PileService {
|
||||
throw new BusinessException(ReturnCodeEnum.CODE_STATION_IS_NOT_OPEN);
|
||||
}
|
||||
|
||||
// CompletableFuture<PileStationVO> pileStationVOFuture = CompletableFuture.supplyAsync(() -> pileStationInfoService.getStationInfo(pileInfoVO.getStationId()));
|
||||
|
||||
// 查询充电桩下枪口信息
|
||||
CompletableFuture<List<ConnectorInfoVO>> connectorInfoListFuture = CompletableFuture.supplyAsync(() -> pileConnectorInfoService.selectConnectorInfoList(pileSn));
|
||||
|
||||
|
||||
@@ -119,7 +119,7 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService {
|
||||
// 查数据库
|
||||
pileBasicInfo = pileBasicInfoMapper.selectPileBasicInfoBySn(pileSn);
|
||||
if (pileBasicInfo != null) {
|
||||
redisCache.setCacheObject(redisKey, pileBasicInfo, 5, TimeUnit.MINUTES);
|
||||
redisCache.setCacheObject(redisKey, pileBasicInfo, 15, TimeUnit.MINUTES);
|
||||
}
|
||||
}
|
||||
return pileBasicInfo;
|
||||
|
||||
@@ -411,7 +411,9 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
|
||||
@Override
|
||||
public List<ConnectorInfoVO> selectConnectorInfoList(String pileSn) {
|
||||
// 查询充电桩型号信息
|
||||
PileModelInfoVO pileModelInfoVO = pileModelInfoService.getPileModelInfoByPileSn(pileSn);
|
||||
// PileModelInfoVO pileModelInfoVO = pileModelInfoService.getPileModelInfoByPileSn(pileSn);
|
||||
PileBasicInfo pileBasicInfo = pileBasicInfoService.selectPileBasicInfoBySN(pileSn);
|
||||
PileModelInfoVO pileModelInfoVO = pileModelInfoService.getPileModelInfoByModelId(pileBasicInfo.getModelId());
|
||||
|
||||
List<PileConnectorInfo> connectorList = selectPileConnectorInfoList(pileSn);
|
||||
List<ConnectorInfoVO> connectorInfoList = Lists.newArrayList();
|
||||
|
||||
@@ -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("举视");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user