From 15f18fe5cb4e4cc6990021d2436dfe9e172074cb Mon Sep 17 00:00:00 2001 From: Guoqs <123@jsowell.com> Date: Fri, 23 Aug 2024 12:01:32 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E9=A2=84=E7=BA=A6=E5=85=85=E7=94=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ReservationChargingStartupResultHandler.java | 2 +- .../pile/service/impl/OrderBasicInfoServiceImpl.java | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/jsowell-netty/src/main/java/com/jsowell/netty/handler/yunkuaichong/ReservationChargingStartupResultHandler.java b/jsowell-netty/src/main/java/com/jsowell/netty/handler/yunkuaichong/ReservationChargingStartupResultHandler.java index 02b6a4c1a..032463014 100644 --- a/jsowell-netty/src/main/java/com/jsowell/netty/handler/yunkuaichong/ReservationChargingStartupResultHandler.java +++ b/jsowell-netty/src/main/java/com/jsowell/netty/handler/yunkuaichong/ReservationChargingStartupResultHandler.java @@ -144,7 +144,7 @@ public class ReservationChargingStartupResultHandler extends AbstractYkcHandler .pileSn(pileSn) .connectorCode(connectorCode) .vinCode(vinCode) - .startupResult(startupResultMsg) + .startupResult(failReason) .failReason(failReasonMsg) .build(); pileBasicInfoService.startupResult(chargingStartupResult); diff --git a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java index 2a102f981..30f4e9a36 100644 --- a/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java +++ b/jsowell-pile/src/main/java/com/jsowell/pile/service/impl/OrderBasicInfoServiceImpl.java @@ -3826,11 +3826,17 @@ public class OrderBasicInfoServiceImpl implements OrderBasicInfoService { .reason(chargingStartupResult.getFailReason()) .build(); + OrderDetail orderDetail = OrderDetail.builder() + .orderCode(orderCode) + .delFlag(DelFlagEnum.NORMAL.getValue()) + .build(); + // 保存到数据库 OrderTransactionDTO createOrderTransactionDTO = OrderTransactionDTO.builder() .orderBasicInfo(orderBasicInfo) - .orderDetail(null) + .orderDetail(orderDetail) .build(); + logger.info("createReservationOrder, chargingStartupResult:{}, 订单信息:{}", JSON.toJSONString(chargingStartupResult), JSON.toJSONString(orderBasicInfo)); pileTransactionService.doCreateOrder(createOrderTransactionDTO); OrderPayRecord principalPayRecord = OrderPayRecord.builder()