添加查询充电枪状态接口

This commit is contained in:
三丙
2025-09-27 18:04:00 +08:00
parent 7a03cc98a7
commit a1e0a09320
74 changed files with 1727 additions and 259 deletions

View File

@@ -229,7 +229,7 @@ public class LvnengV340RealTimeDataULCmd extends LvnengUplinkCmdExe {
GunRunStatus gunRunStatus = parseGunRunStatus(pileStatus);
GunRunStatusProto gunRunStatusProto = GunRunStatusProto.newBuilder()
.setPileCode(pileCode)
.setGunCode(gunCode + "")
.setGunNo(gunCode + "")
.setGunRunStatus(gunRunStatus)
.addAllFaultMessages(Stream.of(alarmCodeDesc).collect(Collectors.toList()))
.setAdditionalInfo(additionalInfo.toString())
@@ -247,7 +247,7 @@ public class LvnengV340RealTimeDataULCmd extends LvnengUplinkCmdExe {
// 充电进度
ChargingProgressProto.Builder chargingProgressProtoBuilder = ChargingProgressProto.newBuilder()
.setPileCode(pileCode)
.setGunCode(gunCode + "")
.setGunNo(gunCode + "")
.setTradeNo(tradeNo)
.setOutputVoltage(String.valueOf(DCV))
.setOutputCurrent(String.valueOf(DCC))

View File

@@ -74,7 +74,7 @@ public class LvnengV340RemoteStopAckULCmd extends LvnengUplinkCmdExe {
RemoteStopChargingResponse remoteStopChargingResponse = RemoteStopChargingResponse.newBuilder()
.setPileCode(pileCode)
.setGunCode(gunCode+"")
.setGunNo(gunCode + "")
.setSuccess(isSuccess)
.setAdditionalInfo(additionalInfo.toString())
.build();

View File

@@ -38,7 +38,7 @@ public class LvnengV340RemoteStopDLCmd extends LvnengDownlinkCmdExe {
DownlinkProto.RemoteStopChargingRequest remoteStopChargingRequest = lvnengDwonlinkMessage.getMsg().getRemoteStopChargingRequest();
String pileCode = remoteStopChargingRequest.getPileCode();
String gunCode = remoteStopChargingRequest.getGunCode();
String gunCode = remoteStopChargingRequest.getGunNo();
ByteBuf msgBody = Unpooled.buffer(44);
//1预留

View File

@@ -195,7 +195,7 @@ public class LvnengV340TransactionRecordULCmd extends LvnengUplinkCmdExe {
// 转发到后端
TransactionRecordRequest transactionRecord = TransactionRecordRequest.newBuilder()
.setPileCode(pileCode)
.setGunCode(gunCode + "")
.setGunNo(gunCode + "")
.setTradeNo(tradeNo)
.setStartTs(startTs)
.setEndTs(endTs)