Commit 96920305 authored by 吴春's avatar 吴春

提交

parent 429c086d
......@@ -439,9 +439,9 @@ namespace Mall.WebApi.Controllers.AppletWeChat
if (list != null && list.Any())
{
decimal GrossProfitRate = 0;
if (list.Count() > 0 && (list.Sum(x => x.AllPrice + x.YFMoney)) > 0)
if (list.Count() > 0 && (list.Sum(x => x.AllPrice + x.YSMoney)) > 0)
{
GrossProfitRate = (Math.Round((list.Sum(x => x.GrossProfit) / list.Sum(x => x.AllPrice + x.YFMoney)), 4, MidpointRounding.AwayFromZero) * 100);
GrossProfitRate = (Math.Round((list.Sum(x => x.GrossProfit) / list.Sum(x => x.AllPrice + x.YSMoney)), 4, MidpointRounding.AwayFromZero) * 100);
}
ExcelDataSource datarow = new ExcelDataSource()
......@@ -571,9 +571,9 @@ namespace Mall.WebApi.Controllers.AppletWeChat
decimal GrossProfitRate = 0;
if (list.Count() > 0 && (list.Sum(x => x.AllPrice + x.YFMoney)) > 0)
if (list.Count() > 0 && (list.Sum(x => x.AllPrice + x.YSMoney)) > 0)
{
GrossProfitRate = (Math.Round((list.Sum(x => x.GrossProfit) / list.Sum(x => x.AllPrice + x.YFMoney)), 4, MidpointRounding.AwayFromZero) * 100);
GrossProfitRate = (Math.Round((list.Sum(x => x.GrossProfit) / list.Sum(x => x.AllPrice + x.YSMoney)), 4, MidpointRounding.AwayFromZero) * 100);
}
var retult = new
{
......
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