From 222b5c4620d7559888843e884310d1cb3c269030 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 09:06:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BA=93=E4=BD=8D=E4=BF=A1=E6=81=AF=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PostionLocations/PostionLocationAppService.cs | 6 ++++++ .../Notes/TransferNotes/TransferNoteAppService.cs | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs index 0968064ee..5025d8900 100644 --- a/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs +++ b/be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs @@ -121,7 +121,13 @@ public class PostionLocationAppService } + public override async Task CreateAsync(PostionLocationEditInput input) + { + + await CheckLocationCode(input.LocationCode).ConfigureAwait(false); + return await base.CreateAsync(input).ConfigureAwait(false); + } [HttpPost("get-or-add")] public virtual async Task GetOrAddAsync(PostionLocationEditInput input) 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 a29ade902..eb2cc3df7 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 @@ -714,7 +714,7 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase .ConfigureAwait(false); if (toloc == null) { - errors.Add($"结束点{detail.EndPosition}库位没查到"); + errors.Add($"结束点{detail.EndPosition}没查到"); } LocationDTO tolocation = null; if (toloc != null)