From 6d115888b0b2cf700118fbf6d6bc890827040aed Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期五, 31 十月 2025 18:02:10 +0800
Subject: [PATCH] 优化PDA
---
新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/InOrderJob.cs | 18 +++++++++++-------
1 files changed, 11 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 96ffe3c..b7b0004 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"
@@ -5,18 +5,22 @@
{
public class InOrderJob : Job
{
- private readonly ICabinOrderServices _cabinOrderServices;
- public InOrderJob(ICabinOrderServices cabinOrderServices)
+ private readonly IBusiness _business;
+ public InOrderJob(IBusiness business)
{
- _cabinOrderServices = cabinOrderServices;
+ _business = business;
}
//姣忛殧1绉掓墽琛屼竴娆�
- [Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = true,SkipWhileExecuting = true)]
+ [Invoke(Begin = "2025-09-01", Interval = 1000 * 60 * 10, IsEnabled = true, SkipWhileExecuting = true)]
public void Run()
{
- _cabinOrderServices.GetUpstreamOrder();
- _cabinOrderServices.EdiIn();
- _cabinOrderServices.CompleteAllOrders();
+ _business.GetUpstreamOrder();
+ _business.GetUpstreamOutOrder();
+ //_business.EdiIn();
+ //_business.CompleteAllOrders();
+ _business.CompleteAllOrders();
+ _business.CompleteAllOutOrders();
+ Console.WriteLine($"ERP浠诲姟鎵ц缁撴潫锛歿DateTime.Now}");
}
}
}
--
Gitblit v1.9.3