|
|
@ -410,8 +410,8 @@ namespace BBWY.Server.Business |
|
|
|
/// <param name="jObject"></param>
|
|
|
|
private void OrderPriceModificationCallbackFrom1688(JObject jObject) |
|
|
|
{ |
|
|
|
//var purchaseOrderId = jObject["data"].Value<string>("orderId");
|
|
|
|
//Task.Factory.StartNew(() => OrderPriceModificationCallback(purchaseOrderId, Enums.Platform.阿里巴巴), CancellationToken.None, TaskCreationOptions.LongRunning, taskSchedulerManager.PurchaseOrderCallbackTaskScheduler);
|
|
|
|
var purchaseOrderId = jObject["data"].Value<string>("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>(orderCost.OrderId).SetSource(orderCost).ExecuteAffrows(); |
|
|
|
fsql.Update<OrderDropShipping>(orderDropshipping.OrderId).SetSource(orderDropshipping).ExecuteAffrows(); |
|
|
|
fsql.Update<OrderCost>().SetSource(orderCost).ExecuteAffrows(); |
|
|
|
fsql.Update<OrderDropShipping>().SetSource(orderDropshipping).ExecuteAffrows(); |
|
|
|
}); |
|
|
|
} |
|
|
|
catch (Exception ex) |
|
|
|