update 新增 0xA4平台主动下发并充充电指令

This commit is contained in:
Lemon
2025-08-06 10:15:58 +08:00
parent 3087825eca
commit 8d44f171d4
7 changed files with 193 additions and 2 deletions

View File

@@ -97,12 +97,16 @@ public class AnswerPlatformStartMergeChargeHandler extends AbstractYkcHandler {
byte[] mergeChargeNumberByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
String mergeChargeNumber = BytesUtil.bcd2Str(mergeChargeNumberByteArr);
log.info("【====平台收到消息====】远程下发并充启动充电指令回复, 交易流水号:{}, 桩编号:{}, 枪口号:{}, " +
"启动结果:{}, 失败原因:{}, 主辅枪标记:{}, 并充序号:{}",
transactionCode, pileSn, connectorCode, startResult, failedReasonMsg, connectorMark, mergeChargeNumber);
if (StringUtils.equals(startResult, Constants.DOUBLE_ZERO)) {
// 启动失败 2025年4月2日16点39分修改逻辑:启动失败后不退款, 使用支付完成未启动定时任务退款
// orderBasicInfoService.chargingPileFailedToStart(transactionCode, failedReasonMsg);
} else {
// 启动成功
orderBasicInfoService.chargingPileStartedSuccessfully(transactionCode);
orderBasicInfoService.chargingPileStartedSuccessfully(transactionCode, pileSn + connectorCode, connectorMark);
}
return null;