更新 商铺统计利润算法
增加买手售后订单 增加备注
This commit is contained in:
1 parent
87e13e6544
commit
31b78e12b5
12 files changed
+208
-40
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using MAX.Core.DependencyInjection;
|
||||
using MAX.Core.Logger;
|
||||
using Store.Framework.Jobs;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -15,14 +16,20 @@ namespace KJD_Web.Services.Shops;
|
||||
public class ShopStatsJob : IScheduledJobs, ITransientDependency
|
||||
{
|
||||
private readonly ShopRevenueStatisticsService _shopRevenueStatisticsService;
|
||||
private readonly ILoggerFacade _logger;
|
||||
|
||||
public ShopStatsJob(ShopRevenueStatisticsService shopRevenueStatisticsService)
|
||||
public ShopStatsJob(ShopRevenueStatisticsService shopRevenueStatisticsService, ILoggerFacade logger)
|
||||
{
|
||||
_shopRevenueStatisticsService = shopRevenueStatisticsService;
|
||||
_logger = logger;
|
||||
}
|
||||
public Task RunAsync()
|
||||
{
|
||||
_shopRevenueStatisticsService.UpdateStats(DateTime.Now.AddDays(-1).Date);
|
||||
var data = DateTime.Now.AddDays(-1).Date;
|
||||
_logger.Info($">>> 执行商铺统计更新:{data.ToString("yyyy-MM-dd")}");
|
||||
_shopRevenueStatisticsService.UpdateStats(data);
|
||||
_logger.Info($"<<< 执行商铺更新:{data.ToString("yyyy-MM-dd")}");
|
||||
return Task.CompletedTask;
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user