From 5b8bf171b9afda52fa366a72e54eedbd9e6d4d17 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期六, 01 十一月 2025 19:54:25 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/ZhiHuiQiCe/FangCangZhiNeng
---
新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/InOrderJob.cs | 20 +++++++++++++-------
1 files changed, 13 insertions(+), 7 deletions(-)
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/InOrderJob.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/InOrderJob.cs"
index 67f6c64..0b814d0 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/InOrderJob.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/InOrderJob.cs"
@@ -1,22 +1,28 @@
锘縰sing Pomelo.AspNetCore.TimedJob;
using WIDESEA_ISquareCabinServices;
+using WIDESEA_IWMsInfoServices;
namespace WIDESEA_WMSServer
{
public class InOrderJob : Job
{
- private readonly ICabinOrderServices _cabinOrderServices;
- public InOrderJob(ICabinOrderServices cabinOrderServices)
+ private readonly IBusiness _business;
+ private readonly IMaterielInfoService _materielInfoService;
+ public InOrderJob(IBusiness business, IMaterielInfoService materielInfoService)
{
- _cabinOrderServices = cabinOrderServices;
+ _business = business;
+ _materielInfoService = materielInfoService;
}
//姣忛殧1绉掓墽琛屼竴娆�
- [Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = false,SkipWhileExecuting = true)]
+ [Invoke(Begin = "2025-11-01", Interval = 1000 * 5, IsEnabled = true, SkipWhileExecuting = true)]
public void Run()
{
- _cabinOrderServices.GetUpstreamOrder();
- _cabinOrderServices.EdiIn();
- _cabinOrderServices.CompleteAllOrders();
+ _materielInfoService.GetMedicineGoodsInfom();
+ _business.GetInOrder();
+ _business.GetOutOrder();
+ _business.CompleteAllOrders();
+ _business.CompleteAllOutOrders();
+ Console.WriteLine($"ERP浠诲姟鎵ц缁撴潫锛歿DateTime.Now}");
}
}
}
--
Gitblit v1.9.3