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)