From 8344f9ceac01f8dd87c22efecf2b20bdcb6b0a56 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期五, 14 十一月 2025 23:27:49 +0800
Subject: [PATCH] 优化盘点以及人工入库进行校正
---
新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/GoodsJob.cs | 14 +++++++++-----
1 files changed, 9 insertions(+), 5 deletions(-)
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/GoodsJob.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/GoodsJob.cs"
index 46d43f6..017264e 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/GoodsJob.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/GoodsJob.cs"
@@ -1,22 +1,26 @@
锘縰sing Pomelo.AspNetCore.TimedJob;
-using WIDESEA_ISquareCabinServices;
+using WIDESEA_ISystemService;
using WIDESEA_IWMsInfoServices;
-using static WIDESEA_DTO.SquareCabin.TowcsDto;
+
namespace WIDESEA_WMSServer
{
public class GoodsJob : Job
{
private readonly IMaterielInfoService _materielInfoService;
- public GoodsJob(IMaterielInfoService materielInfoService)
+ private readonly ISys_LogService _logger;
+ public GoodsJob(IMaterielInfoService materielInfoService, ISys_LogService logger)
{
_materielInfoService = materielInfoService;
+ _logger=logger;
}
//姣忛殧1绉掓墽琛屼竴娆�
- [Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = false, SkipWhileExecuting = true)]
+ [Invoke(Begin = "2025-09-01", Interval = 1000 * 60 * 60 * 24 * 7, IsEnabled = true, SkipWhileExecuting = true)]
public void Run()
{
- Console.WriteLine($"鐗╂枡淇℃伅浠诲姟鎵ц缁撴潫锛歿DateTime.Now}");
+ _logger.ScheduledDeletion();
+ Console.WriteLine($"鍒犻櫎鏃ュ織鎵ц缁撴潫锛歿DateTime.Now}");
+ //Console.WriteLine($"鐗╂枡淇℃伅浠诲姟鎵ц缁撴潫锛歿DateTime.Now}");
}
}
}
--
Gitblit v1.9.3