From 56acb225bec671a18c30e3bf86be6c4223888850 Mon Sep 17 00:00:00 2001 From: shanj <18996038927@163.com> Date: Tue, 9 Aug 2022 14:12:09 +0800 Subject: [PATCH] 1 --- BBWY.Server.Business/Statistics/StatisticsBusiness.cs | 7 ++++++- .../Dto/Request/Statistics/ToDayOrderAchievementRequest.cs | 7 +++++++ .../Dto/Response/Statistics/OrderAchievementResponse.cs | 1 + 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/BBWY.Server.Business/Statistics/StatisticsBusiness.cs b/BBWY.Server.Business/Statistics/StatisticsBusiness.cs index 07f4fef7..6bb5f014 100644 --- a/BBWY.Server.Business/Statistics/StatisticsBusiness.cs +++ b/BBWY.Server.Business/Statistics/StatisticsBusiness.cs @@ -51,10 +51,15 @@ namespace BBWY.Server.Business response.AdvCost = advCost; response.Profit -= advCost; } - + response.ShopId = request.ShopId; return response; } + public IList GetOrderAchievementStatistics(AllShopOrderAchievementRequest request) + { + return null; + } + private void XingXiangCumulative(IList detailList, string spuId, bool isSD, decimal profit, decimal sdProductAmount, decimal sdCost) { var xxRespose = detailList.FirstOrDefault(xx => xx.Spu == spuId); diff --git a/BBWY.Server.Model/Dto/Request/Statistics/ToDayOrderAchievementRequest.cs b/BBWY.Server.Model/Dto/Request/Statistics/ToDayOrderAchievementRequest.cs index bbf9408e..3bba09ac 100644 --- a/BBWY.Server.Model/Dto/Request/Statistics/ToDayOrderAchievementRequest.cs +++ b/BBWY.Server.Model/Dto/Request/Statistics/ToDayOrderAchievementRequest.cs @@ -10,4 +10,11 @@ namespace BBWY.Server.Model.Dto public DateTime EndTime { get; set; } } + + public class AllShopOrderAchievementRequest + { + public DateTime StartTime { get; set; } + + public DateTime EndTime { get; set; } + } } diff --git a/BBWY.Server.Model/Dto/Response/Statistics/OrderAchievementResponse.cs b/BBWY.Server.Model/Dto/Response/Statistics/OrderAchievementResponse.cs index e628425a..58df864f 100644 --- a/BBWY.Server.Model/Dto/Response/Statistics/OrderAchievementResponse.cs +++ b/BBWY.Server.Model/Dto/Response/Statistics/OrderAchievementResponse.cs @@ -4,6 +4,7 @@ namespace BBWY.Server.Model.Dto { public class OrderAchievementResponse { + public long ShopId { get; set; } /// /// 销售额(用户实付)