From 9ad3666d15deccc40a2aa4d1b96950c78eaf165f Mon Sep 17 00:00:00 2001 From: 海波 张 <2956280567@qq.com> Date: 星期四, 22 五月 2025 17:28:56 +0800 Subject: [PATCH] 金坛修改 --- core/Monitor.cs | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/core/Monitor.cs b/core/Monitor.cs index 0cf5ad4..c67890c 100644 --- a/core/Monitor.cs +++ b/core/Monitor.cs @@ -4,6 +4,7 @@ using HH.WCS.ZhongCeJinTan.util; using HH.WCS.ZhongCeJinTan.wms; using Newtonsoft.Json; +using SqlSugar; using System; using System.Collections.Generic; using System.Linq; @@ -51,6 +52,14 @@ var tasks = db.Queryable<WMSTask>().Where(p => p.S_OP_CODE == operation.S_CODE).ToList(); + + if (tasks.Count >1 && tasks.Count(p => p.N_B_STATE == 3) == 1) + { + operation.S_B_STATE = "瀹屾垚涓�崐"; + operation.T_MODIFY = DateTime.Now; + db.Updateable(operation).UpdateColumns(it => new { it.S_B_STATE, it.T_MODIFY }).ExecuteCommand(); + } + if (tasks.Count == tasks.Count(p => p.N_B_STATE == 3)) { operation.N_B_STATE = 2; @@ -72,8 +81,13 @@ } } + //鍑哄簱浠诲姟 鍔ㄤ綔鐮佹湁1鏃� 姣忛殧涓�鏃堕棿鎻愰珮涓�浼樺厛绾�+ + public static void UpdateOutTaskPriority() + { + //var ts1 = DateTime.Now.Subtract(datetime).TotalMinutes; - + } } } -- Gitblit v1.9.1