交易结算,ordercode相关修改

This commit is contained in:
2023-03-13 16:20:06 +08:00
parent 6f74b99fb3
commit 65841dc476
4 changed files with 21 additions and 19 deletions

View File

@@ -45,7 +45,7 @@ public class RemoteStartChargingRequestHandler extends AbstractHandler{
// 交易流水号
byte[] orderCodeByteArr = BytesUtil.copyBytes(msgBody, startIndex, length);
String orderCode = BytesUtil.bcd2Str(orderCodeByteArr);
String transactionCode = BytesUtil.bcd2Str(orderCodeByteArr);
// 桩编码
startIndex += length;
@@ -86,13 +86,13 @@ public class RemoteStartChargingRequestHandler extends AbstractHandler{
if (StringUtils.equals(startResult, Constants.DOUBLE_ZERO)) {
// 启动失败
orderBasicInfoService.chargingPileFailedToStart(orderCode, failedReasonMsg);
orderBasicInfoService.chargingPileFailedToStart(transactionCode, failedReasonMsg);
} else {
// 启动成功
orderBasicInfoService.chargingPileStartedSuccessfully(orderCode);
orderBasicInfoService.chargingPileStartedSuccessfully(transactionCode);
}
// orderBasicInfoService.updateOrderBasicInfo(orderInfo);
log.info("交易流水号:{}, 桩编码:{}, 枪号:{}, 启动结果:{}, 失败原因:{}", orderCode, pileSn, connectorCode, startResult, failedReasonMsg);
log.info("交易流水号:{}, 桩编码:{}, 枪号:{}, 启动结果:{}, 失败原因:{}", transactionCode, pileSn, connectorCode, startResult, failedReasonMsg);
return null;
}
}

View File

@@ -551,7 +551,7 @@ public class TransactionRecordsRequestHandler extends AbstractHandler {
} else {
// 平台没有查到订单
orderBasicInfoService.saveAbnormalOrder(data);
log.warn("充电桩传来的交易记录,根据订单号:{}查询不到订单,判定为非法账单", orderCode);
log.warn("充电桩传来的交易记录,根据交易流水号:{}查询不到订单,判定为可疑账单", transactionCode);
}
}
}