diff --git a/BBWY.Client/APIServices/StatisticsService.cs b/BBWY.Client/APIServices/StatisticsService.cs index af34359e..e569884e 100644 --- a/BBWY.Client/APIServices/StatisticsService.cs +++ b/BBWY.Client/APIServices/StatisticsService.cs @@ -29,9 +29,9 @@ namespace BBWY.Client.APIServices null, HttpMethod.Post); } - public ApiResponse GetOrderCountStatistics(long shopId, DateTime startDate, DateTime endDate) + public ApiResponse GetOrderCountStatistics(long shopId) { - return SendRequest(globalContext.BBYWApiHost, "Api/Statistics/GetOrderCountStatistics", $"shopId={shopId}&startDate={startDate:yyyy-MM-dd}&endDate={endDate:yyyy-MM-dd}", null, HttpMethod.Get); + return SendRequest(globalContext.BBYWApiHost, "Api/Statistics/GetOrderCountStatistics", $"shopId={shopId}", null, HttpMethod.Get); } /// diff --git a/BBWY.Client/ViewModels/Order/OrderListViewModel.cs b/BBWY.Client/ViewModels/Order/OrderListViewModel.cs index bd98f390..d1c8f082 100644 --- a/BBWY.Client/ViewModels/Order/OrderListViewModel.cs +++ b/BBWY.Client/ViewModels/Order/OrderListViewModel.cs @@ -370,7 +370,7 @@ namespace BBWY.Client.ViewModels if (!IsSDGroup) { Task.Factory.StartNew(() => LoadTodayAchievement(StartDate, EndDate, queryShopId.Value)); - Task.Factory.StartNew(() => LoadOrderCount(StartDate, EndDate, queryShopId.Value)); + Task.Factory.StartNew(() => LoadOrderCount(queryShopId.Value)); } else { @@ -486,9 +486,9 @@ namespace BBWY.Client.ViewModels }); } - private void LoadOrderCount(DateTime startDate, DateTime endDate, long shopId) + private void LoadOrderCount(long shopId) { - var response = statisticsService.GetOrderCountStatistics(shopId, startDate, endDate); + var response = statisticsService.GetOrderCountStatistics(shopId); if (!response.Success) return; WaitPurchaseOrderCount = response.Data.WaitPurchaseCount;