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)