Browse Source

避免重复改价

yijia
shanji 2 years ago
parent
commit
c4559ef305
  1. 22
      BBWYB.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs

22
BBWYB.Server.Business/PurchaseOrder/PurchaseOrderBusiness.cs

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

Loading…
Cancel
Save