From 5c64b790fb7fcf33c12dd1963fb9e7e3a03f347d Mon Sep 17 00:00:00 2001 From: ljl Date: Thu, 30 Nov 2023 09:59:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ms/biz/service/impl/DsMessageServiceImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java b/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java index 3db5274..610f186 100644 --- a/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java +++ b/ms-biz/src/main/java/com/ms/biz/service/impl/DsMessageServiceImpl.java @@ -468,14 +468,12 @@ public class DsMessageServiceImpl implements DsMessageService { refundPurchaseOrder.setSellerReceiveAddress(refundInfo.getSellerReceiveAddress()); refundPurchaseOrder.setGmtTimeOut(refundInfo.getGmtTimeOut()); refundPurchaseOrder.setGmtModified(new Date()); - if (refundPurchaseOrder.getRefundPurchaseOrderId() != null) { + if (refundPurchaseOrder.getRefundPurchaseOrderId() == null) { refundPurchaseOrderMapper.insertSelective(refundPurchaseOrder); + refundPurchaseOrderSkuMapper.insertBatch(refundPurchaseOrderSkus); } else { refundPurchaseOrderMapper.updateByPrimaryKeySelective(refundPurchaseOrder); } - if (!refundPurchaseOrderSkus.isEmpty()) { - refundPurchaseOrderSkuMapper.insertBatch(refundPurchaseOrderSkus); - } } private SkuRefundInfosItem buildSkuRefundInfosItem(String purSkuOrderId, RefundInfoDTO refundInfo, AlibabaMessage alibabaMessage) {