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);//删除原本的任务