From bfc11f87e2b64420c9917c0b9881b3e327d6f796 Mon Sep 17 00:00:00 2001
From: yanjinhui <3306209981@qq.com>
Date: 星期二, 04 十一月 2025 22:19:59 +0800
Subject: [PATCH] 优化调拨出入库
---
新建文件夹/WIDESEA_WMSServer/WIDESEA_WMSServer/AlarmJob.cs | 12 +++++++++---
1 files changed, 9 insertions(+), 3 deletions(-)
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/AlarmJob.cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/AlarmJob.cs"
index f53b921..49d7b10 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/AlarmJob.cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_WMSServer/AlarmJob.cs"
@@ -9,19 +9,25 @@
{
private readonly IContainerService _containerService;
private readonly IEquipmentAlarmInforService _equipmentAlarmInforService;
- public AlarmJob(IContainerService containerService, IEquipmentAlarmInforService equipmentAlarmInforService)
+ private readonly IMessageInfoService _messageInfoService;
+ private readonly IInventory_BatchServices _inventoryInfoService;
+ public AlarmJob(IContainerService containerService, IEquipmentAlarmInforService equipmentAlarmInforService, IMessageInfoService messageInfoService, IInventory_BatchServices inventoryInfoService)
{
_containerService = containerService;
_equipmentAlarmInforService = equipmentAlarmInforService;
+ _messageInfoService = messageInfoService;
+ _inventoryInfoService = inventoryInfoService;
}
//姣忛殧1绉掓墽琛屼竴娆�
- [Invoke(Begin = "2025-09-01", Interval = 1000 * 60, IsEnabled = false, SkipWhileExecuting = true)]
+ [Invoke(Begin = "2025-11-01", Interval = 1000 * 10, IsEnabled = true, SkipWhileExecuting = true)]
public void Run()
{
//鍐峰簱
_containerService.Sensor();
_equipmentAlarmInforService.getDeviceStatus();
-
+ _inventoryInfoService.GetExpiredAndlow();
+ _messageInfoService.GetMessageInfo();
+ Console.WriteLine($"WMS浠诲姟鎵ц缁撴潫锛歿DateTime.Now}");
}
}
}
--
Gitblit v1.9.3