From 3ca1401ff81f256f54533110b48c68e7fa6bfca5 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期六, 01 十一月 2025 00:50:53 +0800
Subject: [PATCH] 整体流程代码优化
---
新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/GoodsJob.cs | 12 +++++++-----
1 files changed, 7 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 2782566..abdc6ed 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,24 @@
锘縰sing Pomelo.AspNetCore.TimedJob;
using WIDESEA_ISquareCabinServices;
+using WIDESEA_IWMsInfoServices;
using static WIDESEA_DTO.SquareCabin.TowcsDto;
namespace WIDESEA_WMSServer
{
public class GoodsJob : Job
{
- private readonly IMedicineGoodsServices _medicineGoodsServices;
- public GoodsJob(IMedicineGoodsServices medicineGoodsServices)
+ private readonly IMaterielInfoService _materielInfoService;
+ public GoodsJob(IMaterielInfoService materielInfoService)
{
- _medicineGoodsServices = medicineGoodsServices;
+ _materielInfoService = materielInfoService;
}
//姣忛殧1绉掓墽琛屼竴娆�
[Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = true, SkipWhileExecuting = true)]
public void Run()
{
- _medicineGoodsServices.GetMedicineGoodsInfom();
- //_medicineGoodsServices.ProductSynchronous();
+ _materielInfoService.GetMedicineGoodsInfom();
+ _materielInfoService.ProductSynchronous();
+ Console.WriteLine($"鐗╂枡淇℃伅浠诲姟鎵ц缁撴潫锛歿DateTime.Now}");
}
}
}
--
Gitblit v1.9.3