Commit bd4c9d67 authored by 黄奎's avatar 黄奎

页面修改

parent ec1c1032
......@@ -1697,8 +1697,17 @@ namespace Mall.WebApi.Controllers.MallBase
pricemodel.GoodsWeight ??= 0;
demodel.InventoryNum += (pricemodel.InventoryNum ?? 0);
}
demodel.SellingPrice = 0;
//主表价格 如果有自定义规格,直接取最小值
demodel.SellingPrice = demodel.SpecificationPriceList.Where(x => x.SellingPrice > 0)?.Min(x => x.SellingPrice ?? 0) ?? 0;
if (demodel.SpecificationPriceList != null && demodel.SpecificationPriceList.Count > 0)
{
var SellingPrice = demodel.SpecificationPriceList.Where(x => x.SellingPrice > 0)?.Min(x => x.SellingPrice);
if (SellingPrice != null)
{
demodel.SellingPrice = SellingPrice;
}
}
//分销佣金
if (demodel.SeparateDistribution == 1)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment