From c124c5ec0dfb9732821cb9c935d7fd17fadbd533 Mon Sep 17 00:00:00 2001 From: liuwf Date: Mon, 4 Nov 2024 17:08:50 +0800 Subject: [PATCH] =?UTF-8?q?change-pda=E7=A7=BB=E5=BA=93=E6=8F=90=E4=BA=A4?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Khd.Core.Wcs/Wcs/CreateTaskByRecord.cs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/Khd.Core.Wcs/Wcs/CreateTaskByRecord.cs b/src/Khd.Core.Wcs/Wcs/CreateTaskByRecord.cs index 92ccfff..4e99946 100644 --- a/src/Khd.Core.Wcs/Wcs/CreateTaskByRecord.cs +++ b/src/Khd.Core.Wcs/Wcs/CreateTaskByRecord.cs @@ -365,7 +365,7 @@ namespace Khd.Core.Wcs.Wcs { dbContext.ChangeTracker.Clear(); List wmsMoves = dbContext.WmsMove.Where(t => t.AuditStatus == "1" && t.ExecuteStatus == "0") - .Where(t => t.OperationType == "1").Where(t => wareHouseIds.Contains(t.WarehouseId)).ToList(); + .Where(t => t.OperationType == "3").Where(t => wareHouseIds.Contains(t.WarehouseId)).ToList(); foreach (var item in wmsMoves) { BaseEquip agvEquip; @@ -399,15 +399,15 @@ namespace Khd.Core.Wcs.Wcs continue; } } - if (toLocation != null && toLocation.locDeep == 1) - { - //查询浅库位状态 - var lowerLocation = SystemData.GetLowerLocation(toLocation, dbContext); - if (lowerLocation != null && (lowerLocation == null || lowerLocation.locationStatus != "1" || !string.IsNullOrEmpty(lowerLocation.containerCode))) - { - continue; - } - } + //if (toLocation != null && toLocation.locDeep == 1) + //{ + // //查询浅库位状态 + // var lowerLocation = SystemData.GetLowerLocation(toLocation, dbContext); + // if (lowerLocation != null && (lowerLocation == null || lowerLocation.locationStatus != "1" || !string.IsNullOrEmpty(lowerLocation.containerCode))) + // { + // continue; + // } + //} if (wmslocation != null && toLocation != null) { var RemoveTask = new WcsTask()