From 38a9baa41316a3f834b67f0334ec001abeeede07 Mon Sep 17 00:00:00 2001 From: 海波 张 <2956280567@qq.com> Date: 星期五, 16 五月 2025 17:34:07 +0800 Subject: [PATCH] 金坛优化 --- core/Monitor.cs | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/core/Monitor.cs b/core/Monitor.cs index 0cf5ad4..a739122 100644 --- a/core/Monitor.cs +++ b/core/Monitor.cs @@ -51,6 +51,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; -- Gitblit v1.9.1