diff --git a/BBWY.Server.Business/Statistics/StatisticsBusiness.cs b/BBWY.Server.Business/Statistics/StatisticsBusiness.cs index 0fd2515e..e5a0ba17 100644 --- a/BBWY.Server.Business/Statistics/StatisticsBusiness.cs +++ b/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 }; } diff --git a/BBWY.Server.Model/Dto/Response/Order/XingXinagSearchResponse.cs b/BBWY.Server.Model/Dto/Response/Order/XingXinagSearchResponse.cs index 9a726b8b..fb790e6f 100644 --- a/BBWY.Server.Model/Dto/Response/Order/XingXinagSearchResponse.cs +++ b/BBWY.Server.Model/Dto/Response/Order/XingXinagSearchResponse.cs @@ -29,6 +29,16 @@ namespace BBWY.Server.Model.Dto /// 总利润 /// public decimal TotalProfit { get; set; } + + /// + /// 店铺毛利率 + /// + public decimal? ShopProfitRatio { get; set; } + + /// + /// 店铺盈利率 + /// + public decimal? ShopYingLiRatio { get; set; } } public class XingXiangItemResponse