From 35d2c077a1f4939a15b0052bd514505405062da1 Mon Sep 17 00:00:00 2001 From: liuwf Date: Fri, 6 Dec 2024 18:31:51 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Khd.Core.Wcs/Wcs/SecondFloorPoint.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Khd.Core.Wcs/Wcs/SecondFloorPoint.cs b/src/Khd.Core.Wcs/Wcs/SecondFloorPoint.cs index 352097f..18ce440 100644 --- a/src/Khd.Core.Wcs/Wcs/SecondFloorPoint.cs +++ b/src/Khd.Core.Wcs/Wcs/SecondFloorPoint.cs @@ -90,7 +90,7 @@ namespace Khd.Core.Wcs.Wcs } if (wcsTask.taskType != 99)//不是人工任务 { - bool hasTask = dbContext.WcsTask.Where(t => t.endPointId == inEquip.objid).Any(); + bool hasTask = dbContext.WcsTask.Where(t => t.endPointId == inEquip.objid && t.objid != wcsTask.objid).Any(); if (agvPutValue != null && Convert.ToInt32(agvPutValue) == 1 && !hasTask && Convert.ToInt32(PalletInIsHas2F) == 0 && Convert.ToInt32(ConnectStatus2F) == 1)//小包入口要料 { dbContext.Remove(wcsTask);//删除原本的任务