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;