| | |
| | | { |
| | | 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 * 5, IsEnabled = false, SkipWhileExecuting = true)] |
| | | [Invoke(Begin = "2025-09-01", Interval = 1000 * 5, IsEnabled = true, SkipWhileExecuting = true)] |
| | | public void Run() |
| | | { |
| | | //å·åº |
| | | //_containerService.Sensor(); |
| | | _containerService.Sensor(); |
| | | _equipmentAlarmInforService.getDeviceStatus(); |
| | | |
| | | _inventoryInfoService.GetExpiredAndlow(); |
| | | _messageInfoService.GetMessageInfo(); |
| | | Console.WriteLine($"WMS任塿§è¡ç»æï¼{DateTime.Now}"); |
| | | } |
| | | } |
| | | } |