From 2b49f7643d15b74889d190f216630559006ed93a Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期一, 01 十二月 2025 09:48:43 +0800
Subject: [PATCH] pad和后端的优化
---
新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/GoodsJob.cs | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 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 2d7483b..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 static WIDESEA_DTO.SquareCabin.TowcsDto;
+using WIDESEA_ISystemService;
+using WIDESEA_IWMsInfoServices;
+
namespace WIDESEA_WMSServer
{
public class GoodsJob : Job
{
- private readonly IMedicineGoodsServices _medicineGoodsServices;
- public GoodsJob(IMedicineGoodsServices medicineGoodsServices)
+ private readonly IMaterielInfoService _materielInfoService;
+ private readonly ISys_LogService _logger;
+ public GoodsJob(IMaterielInfoService materielInfoService, ISys_LogService logger)
{
- _medicineGoodsServices = medicineGoodsServices;
+ _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()
{
- _medicineGoodsServices.GetMedicineGoodsInfom();
- _medicineGoodsServices.ProductSynchronous();
+ _logger.ScheduledDeletion();
+ Console.WriteLine($"鍒犻櫎鏃ュ織鎵ц缁撴潫锛歿DateTime.Now}");
+ //Console.WriteLine($"鐗╂枡淇℃伅浠诲姟鎵ц缁撴潫锛歿DateTime.Now}");
}
}
}
--
Gitblit v1.9.3