From 4b483d9d06bead231b88ca212fd799196668a057 Mon Sep 17 00:00:00 2001
From: wanshenmean <cathay_xy@163.com>
Date: 星期二, 28 四月 2026 22:58:27 +0800
Subject: [PATCH] fix(任务服务): 修复出库任务选择逻辑和货位分配问题

---
 Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/BackgroundServices/StockMonitorBackgroundService.cs |   13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/BackgroundServices/StockMonitorBackgroundService.cs b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/BackgroundServices/StockMonitorBackgroundService.cs
index 201ccea..1e50b88 100644
--- a/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/BackgroundServices/StockMonitorBackgroundService.cs
+++ b/Code/WMS/WIDESEA_WMSServer/WIDESEA_WMSServer/BackgroundServices/StockMonitorBackgroundService.cs
@@ -1,13 +1,5 @@
 using Microsoft.AspNetCore.SignalR;
-using Microsoft.Extensions.DependencyInjection;
-using Microsoft.Extensions.Hosting;
-using Microsoft.Extensions.Logging;
-using System;
 using System.Collections.Concurrent;
-using System.Collections.Generic;
-using System.Linq;
-using System.Threading;
-using System.Threading.Tasks;
 using WIDESEA_Core.BaseRepository;
 using WIDESEA_IStockService;
 using WIDESEA_Model.Models;
@@ -43,6 +35,7 @@
         /// 鍒嗗埆璺熻釜璐т綅銆佸簱瀛樹富琛ㄣ�佸簱瀛樻槑缁嗭紝閬垮厤姣忔鍏ㄨ〃鎵弿銆�
         /// </summary>
         private DateTime _lastLocationCheckTime = DateTime.MinValue;
+
         private DateTime _lastStockCheckTime = DateTime.MinValue;
         private DateTime _lastDetailCheckTime = DateTime.MinValue;
 
@@ -244,7 +237,7 @@
                         "澧為噺搴撳瓨鍙樻洿鎺ㄩ�侊紝LocationId={LocationId}锛孡ocationStatus={LocationStatus}锛孲tockStatus={StockStatus}锛孮uantity={Quantity}",
                         snapshot.LocationId,
                         snapshot.LocationStatus,
-                        snapshot.StockStatus, 
+                        snapshot.StockStatus,
                         snapshot.OutboundDate,
                         snapshot.StockQuantity);
                 }
@@ -378,4 +371,4 @@
             public int LocationId { get; set; }
         }
     }
-}
+}
\ No newline at end of file

--
Gitblit v1.9.3