Commit f4b92651 authored by 吴春's avatar 吴春

提交代码

parent 2be0ea2a
...@@ -157,16 +157,16 @@ namespace Mall.Repository.MarketingCenter ...@@ -157,16 +157,16 @@ namespace Mall.Repository.MarketingCenter
} }
if (!string.IsNullOrWhiteSpace(goodsClassWhere)) if (!string.IsNullOrWhiteSpace(goodsClassWhere))
{ {
goodsClassWhere += $" or (c.ProductId = {item.Key} and a.MinConsumePrice<= {nowPrice}) "; goodsClassWhere += $" or (c.ProductId = {item.Key} and b.MinConsumePrice<= {nowPrice}) ";
} }
else else
{ {
goodsClassWhere += $" (c.ProductId = {item.Key} and a.MinConsumePrice<= {nowPrice}) "; goodsClassWhere += $" (c.ProductId = {item.Key} and b.MinConsumePrice<= {nowPrice}) ";
} }
} }
goodsClassWhere = " and (" + goodsClassWhere + ")"; goodsClassWhere = " and (" + goodsClassWhere + ")";
decimal allPrice = query.ProductList.Sum(x => x.GoodsPrice); decimal allPrice = query.ProductList.Sum(x => x.GoodsPrice);
allWhere = $" and a.MinConsumePrice<= {allPrice} "; allWhere = $" and b.MinConsumePrice<= {allPrice} ";
} }
} }
......
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