桩新增通讯协议版本

This commit is contained in:
yuyang 2021-10-21 15:15:03 +08:00
parent b0c8fe86c6
commit cbb4bc6c96

View File

@ -98,10 +98,11 @@ public class XhpcChargingPileServiceImpl implements IXhpcChargingPileService {
addXhpcTerminal(xhpcChargingPile.getName(), chargingStationId, rateModelId, serialNumber, chargingPileId, i, number + 1, xhpcChargingPile.getConnectorType());
}
}
//插入redis 桩的编号
HashSet<String> noSet = new HashSet<>();
noSet.add(serialNumber);
powerPileService.addPileWhitelist(chargingStationId, noSet);
powerPileService.addPileWhitelist(chargingStationId,xhpcChargingPile.getCommunicationProtocolVersion(), noSet);
return AjaxResult.success();
}
@ -163,7 +164,7 @@ public class XhpcChargingPileServiceImpl implements IXhpcChargingPileService {
//插入redis 桩的编号
HashSet<String> noSet = new HashSet<>();
noSet.add(serialNumber);
powerPileService.addPileWhitelist(chargingStationId, noSet);
powerPileService.addPileWhitelist(chargingStationId,xhpcChargingPile.getCommunicationProtocolVersion(), noSet);
}
xhpcChargingPileMapper.updaeXhpcChargingPile(xhpcChargingPile);
return AjaxResult.success();