From 112c9bd20afed95d582b7eb227075ab8d10cdd12 Mon Sep 17 00:00:00 2001 From: 海波 张 <2956280567@qq.com> Date: 星期二, 24 六月 2025 17:29:28 +0800 Subject: [PATCH] 金坛优化 --- wms/LocationHelper.cs | 12 +++++++++++- 1 files changed, 11 insertions(+), 1 deletions(-) diff --git a/wms/LocationHelper.cs b/wms/LocationHelper.cs index 5514dde..38141d3 100644 --- a/wms/LocationHelper.cs +++ b/wms/LocationHelper.cs @@ -122,8 +122,18 @@ return result.OrderBy(a => a.taskCount).ToList(); } + /// <summary> + /// 杩斿洖褰撳墠鎺ラ┏浣嶆墽琛屼换鍔℃暟閲�+ /// </summary> + internal static int GetConnectionTaskCount(string connection) + { + var db = new SqlHelper<object>().GetInstance(); - + var ConnectionList = 0; + ConnectionList = db.Queryable<WMSTask>().Where(a => (a.S_END_LOC.Contains(connection) || a.S_START_LOC.Contains(connection)) && a.S_B_STATE != "瀹屾垚" && a.S_B_STATE != "鍙栨秷" && a.S_B_STATE != "澶辫触" && a.S_B_STATE != "宸插畬鎴� ).ToList().Count(); + return ConnectionList; + } + /// <summary> /// 鎵剧粓鐐瑰贩閬撳彲鐢ㄧ┖璐т綅 -- Gitblit v1.9.1