Browse Source

1

AddValidOverTime
shanji 2 years ago
parent
commit
f3b313613f
  1. 4
      BBWY.Server.Business/Statistics/StatisticsBusiness.cs
  2. 10
      BBWY.Server.Model/Dto/Response/Order/XingXinagSearchResponse.cs

4
BBWY.Server.Business/Statistics/StatisticsBusiness.cs

@ -295,7 +295,9 @@ namespace BBWY.Server.Business
TotalSDOrderAmount = detailList.Sum(xx => xx.SDOrderAmount),
TotalSDOrderCount = sdOrderList.Count(),
TotalSDOrderCost = detailList.Sum(xx => xx.SDOrderCost),
TotalProfit = detailList.Sum(xx => xx.Profit)
TotalProfit = detailList.Sum(xx => xx.Profit),
ShopYingLiRatio = detailList.FirstOrDefault()?.ShopYingLiRatio,
ShopProfitRatio = detailList.FirstOrDefault()?.ShopProfitRatio
};
}

10
BBWY.Server.Model/Dto/Response/Order/XingXinagSearchResponse.cs

@ -29,6 +29,16 @@ namespace BBWY.Server.Model.Dto
/// 总利润
/// </summary>
public decimal TotalProfit { get; set; }
/// <summary>
/// 店铺毛利率
/// </summary>
public decimal? ShopProfitRatio { get; set; }
/// <summary>
/// 店铺盈利率
/// </summary>
public decimal? ShopYingLiRatio { get; set; }
}
public class XingXiangItemResponse

Loading…
Cancel
Save