From 03a79ced1192496c604fa1a7d00748e429ac4211 Mon Sep 17 00:00:00 2001 From: liuwf Date: Fri, 6 Dec 2024 18:31:45 +0800 Subject: [PATCH] =?UTF-8?q?fix-=E4=BC=98=E5=8C=96=E4=B8=80=E6=A5=BC?= =?UTF-8?q?=E5=8F=AB=E7=A9=BA=E6=89=98=E5=88=B02=E6=A5=BC=E5=B0=8F?= =?UTF-8?q?=E5=8C=85=E5=85=A5=E5=8F=A3bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Khd.Core.Wcs/Wcs/SecondFloorPoint.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Khd.Core.Wcs/Wcs/SecondFloorPoint.cs b/src/Khd.Core.Wcs/Wcs/SecondFloorPoint.cs index 4d83f2b..352097f 100644 --- a/src/Khd.Core.Wcs/Wcs/SecondFloorPoint.cs +++ b/src/Khd.Core.Wcs/Wcs/SecondFloorPoint.cs @@ -148,8 +148,10 @@ namespace Khd.Core.Wcs.Wcs { if (wcsTask.endPointId == 36)//目的地是小包入口 { - bool hasTask = dbContext.WcsTask.Where(t => t.endPointId == inEquip.objid).Any(); - if (agvPutValue != null && Convert.ToInt32(agvPutValue) == 1 && !hasTask && Convert.ToInt32(PalletInIsHas2F) == 0 && Convert.ToInt32(ConnectStatus2F) == 1)//小包入口要料 + 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); WcsTask newTask = CoreMapper.Map(wcsTask); @@ -193,6 +195,7 @@ namespace Khd.Core.Wcs.Wcs newTask.endPointNo = endEquip.equipNo; newTask.taskType = StaticTaskType.SecondLiftToTransit;//到周转位 newTask.useFlag = 1; + newTask.qty = 10; dbContext.Add(newTask); WcsTaskLog wcsTaskLog = CoreMapper.Map(newTask); dbContext.Add(wcsTaskLog);