From d66fd11cdb7a44422dec5da1d27f925649175375 Mon Sep 17 00:00:00 2001 From: shanji <18996038927@163.com> Date: Wed, 22 Feb 2023 16:29:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=AE=A2=E5=8D=95=E5=90=8C?= =?UTF-8?q?=E6=AD=A5=E9=80=BB=E8=BE=91=20=E6=8E=92=E9=99=A4=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E5=8F=B7=E9=87=8D=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BBWY.Server.Business/Sync/OrderSyncBusiness.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/BBWY.Server.Business/Sync/OrderSyncBusiness.cs b/BBWY.Server.Business/Sync/OrderSyncBusiness.cs index 001e6d6c..9bea8250 100644 --- a/BBWY.Server.Business/Sync/OrderSyncBusiness.cs +++ b/BBWY.Server.Business/Sync/OrderSyncBusiness.cs @@ -297,6 +297,8 @@ namespace BBWY.Server.Business foreach (var orderJToken in noGiftOrderList) { var orderId = orderJToken.Value("orderId"); + if (insertOrderList.Count(o => o.Id == orderId) > 0) + continue; var dbOrder = dbOrderList.FirstOrDefault(o => o.Id == orderId); var isNewOrder = dbOrder == null; SDCalculationCostRequest sDCalculationCostRequest = null; //SD信息埋点 @@ -654,6 +656,8 @@ namespace BBWY.Server.Business } #endregion + + fsql.Transaction(() => { if (insertOrderList.Count() > 0)