From e5176d5aa1db69ce06bea4c121bd89cf0d075423 Mon Sep 17 00:00:00 2001
From: shanji <18996038927@163.com>
Date: Tue, 12 Apr 2022 13:45:55 +0800
Subject: [PATCH] =?UTF-8?q?=E6=81=A2=E5=A4=8D=E6=94=B9=E4=BB=B7=E5=9B=9E?=
=?UTF-8?q?=E8=B0=83?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../PurchaseOrder/PurchaseOrderBusiness.cs | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/BBWY.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs b/BBWY.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs
index f3c719a1..fd1baf65 100644
--- a/BBWY.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs
+++ b/BBWY.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs
@@ -410,8 +410,8 @@ namespace BBWY.Server.Business
///
private void OrderPriceModificationCallbackFrom1688(JObject jObject)
{
- //var purchaseOrderId = jObject["data"].Value("orderId");
- //Task.Factory.StartNew(() => OrderPriceModificationCallback(purchaseOrderId, Enums.Platform.阿里巴巴), CancellationToken.None, TaskCreationOptions.LongRunning, taskSchedulerManager.PurchaseOrderCallbackTaskScheduler);
+ var purchaseOrderId = jObject["data"].Value("orderId");
+ Task.Factory.StartNew(() => OrderPriceModificationCallback(purchaseOrderId, Enums.Platform.阿里巴巴), CancellationToken.None, TaskCreationOptions.LongRunning, taskSchedulerManager.PurchaseOrderCallbackTaskScheduler);
}
#endregion
@@ -638,15 +638,14 @@ namespace BBWY.Server.Business
orderDropshipping.PurchaseAmount = purchaseOrderSimpleInfo.TotalAmount;
-
fsql.Transaction(() =>
{
foreach (var update in updatePurchaseOrders)
update.ExecuteAffrows();
foreach (var update in updateOrderCostDetails)
update.ExecuteAffrows();
- fsql.Update(orderCost.OrderId).SetSource(orderCost).ExecuteAffrows();
- fsql.Update(orderDropshipping.OrderId).SetSource(orderDropshipping).ExecuteAffrows();
+ fsql.Update().SetSource(orderCost).ExecuteAffrows();
+ fsql.Update().SetSource(orderDropshipping).ExecuteAffrows();
});
}
catch (Exception ex)