From 885dea51f5e0aa9b3d172ced51464d229f84442c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Tue, 3 Dec 2024 08:46:34 +0800 Subject: [PATCH] =?UTF-8?q?TransferNote=E5=8A=A0Agv=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Notes/TransferNotes/TransferNoteAppService.cs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs index 66cff242b..a29ade902 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs @@ -701,9 +701,7 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase { errors.Add($"来源起始点{detail.BeginPosition}没查到"); } - LocationDTO fromlocation = null; - if (fromloc != null) { fromlocation = await _locationAppService.GetByCodeAsync(fromloc.LocationCode).ConfigureAwait(false); @@ -712,16 +710,13 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase { errors.Add($"来源起始点{detail.BeginPosition}库位没查到"); } - var toloc = await _postionLocationAppService.GetByCodeAsync(detail.EndPosition) .ConfigureAwait(false); if (toloc == null) { errors.Add($"结束点{detail.EndPosition}库位没查到"); } - LocationDTO tolocation = null; - if (toloc != null) { tolocation = await _locationAppService.GetByCodeAsync(toloc.LocationCode).ConfigureAwait(false); @@ -735,7 +730,6 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase { errors.Add($"物料号{detail.MatCode}不在任务明细内!"); } - if (errors.Count > 0) { return ret = new AgvResultObject()