From a372b271c01f5ad0491c74b7e9fd4a078ad526cc Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期一, 10 十一月 2025 18:37:26 +0800
Subject: [PATCH] 优化退货代码
---
新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/OutOrderJob.cs | 23 +++++++++++++----------
1 files changed, 13 insertions(+), 10 deletions(-)
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/OutOrderJob.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/OutOrderJob.cs"
index 1537ab9..7fcde26 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/OutOrderJob.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/OutOrderJob.cs"
@@ -1,25 +1,28 @@
锘縰sing Pomelo.AspNetCore.TimedJob;
using WIDESEA_ISquareCabinServices;
+using WIDESEA_IWMsInfoServices;
namespace WIDESEA_WMSServer
{
public class OutOrderJob : Job
{
- private readonly IDeliveryOrderServices _deliveryOrderServices;
- public OutOrderJob(IDeliveryOrderServices deliveryOrderServices)
+ private readonly IBusiness _business;
+ private readonly IMaterielInfoService _materielInfoService;
+ public OutOrderJob(IBusiness business, IMaterielInfoService materielInfoService)
{
- _deliveryOrderServices = deliveryOrderServices;
+ _business = business;
+ _materielInfoService = materielInfoService;
}
//姣忛殧1绉掓墽琛屼竴娆�
- [Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled =true, SkipWhileExecuting = true)]
+ [Invoke(Begin = "2025-11-01", Interval = 1000 * 5, IsEnabled = false, SkipWhileExecuting = true)]
public void Run()
{
- //鑾峰彇涓婃父鍑哄簱鍗曟暟鎹�
- _deliveryOrderServices.GetUpstreamOutOrder();
- //涓嬪彂wcs
- //_deliveryOrderServices.EdiOut();
- //_deliveryOrderServices.CompleteAllOutOrders();
-
+ //Thread.Sleep(3000);
+ ////鑾峰彇涓婃父鍑哄簱鍗曟暟鎹�
+ //_materielInfoService.ProductSynchronous();
+ //_business.EdiIn();
+ //_business.EdiOut();
+ //Console.WriteLine($"WCS浠诲姟鎵ц缁撴潫锛歿DateTime.Now}");
}
}
}
--
Gitblit v1.9.3