|
|
@ -2823,16 +2823,20 @@ namespace BBWYB.Server.Business |
|
|
|
{ |
|
|
|
orderSku.Price = currentOrderSkuProductAmount / orderSku.ItemTotal; |
|
|
|
orderSku.BuyerPayFreight = currentPurchaseFreight; |
|
|
|
op_EditPriceSkuRequests.Add(new OP_EditPriceSkuRequest() |
|
|
|
if (!op_EditPriceSkuRequests.Any(x => x.SkuId == orderSku.SkuId)) |
|
|
|
{ |
|
|
|
Freight = currentPurchaseFreight ?? 0M, |
|
|
|
InPackAmountPrice = orderSku.InPackAmount ?? 0M, |
|
|
|
OrderSkuId = orderSku.Id.ToString(), |
|
|
|
Price = orderSku.Price ?? 0M, |
|
|
|
SkuId = orderSku.SkuId |
|
|
|
}); |
|
|
|
updateOrderSkuList.Add(fsql.Update<OrderSku>(orderSku.Id).Set(osku => osku.Price, orderSku.Price) |
|
|
|
.Set(osku => osku.BuyerPayFreight, orderSku.BuyerPayFreight)); |
|
|
|
op_EditPriceSkuRequests.Add(new OP_EditPriceSkuRequest() |
|
|
|
{ |
|
|
|
Freight = currentPurchaseFreight ?? 0M, |
|
|
|
InPackAmountPrice = orderSku.InPackAmount ?? 0M, |
|
|
|
OrderSkuId = orderSku.Id.ToString(), |
|
|
|
Price = orderSku.Price ?? 0M, |
|
|
|
SkuId = orderSku.SkuId |
|
|
|
}); |
|
|
|
updateOrderSkuList.Add(fsql.Update<OrderSku>(orderSku.Id).Set(osku => osku.Price, orderSku.Price) |
|
|
|
.Set(osku => osku.BuyerPayFreight, orderSku.BuyerPayFreight)); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
#endregion
|
|
|
|
|
|
|
|