Browse Source

库位信息添加校验

Agv分支2024-11-19
赵新宇 5 months ago
parent
commit
222b5c4620
  1. 6
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs
  2. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs

6
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/PostionLocations/PostionLocationAppService.cs

@ -121,7 +121,13 @@ public class PostionLocationAppService
} }
public override async Task<PostionLocationDTO> CreateAsync(PostionLocationEditInput input)
{
await CheckLocationCode(input.LocationCode).ConfigureAwait(false);
return await base.CreateAsync(input).ConfigureAwait(false);
}
[HttpPost("get-or-add")] [HttpPost("get-or-add")]
public virtual async Task<PostionLocationDTO> GetOrAddAsync(PostionLocationEditInput input) public virtual async Task<PostionLocationDTO> GetOrAddAsync(PostionLocationEditInput input)

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs

@ -714,7 +714,7 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase
.ConfigureAwait(false); .ConfigureAwait(false);
if (toloc == null) if (toloc == null)
{ {
errors.Add($"结束点{detail.EndPosition}库位没查到"); errors.Add($"结束点{detail.EndPosition}没查到");
} }
LocationDTO tolocation = null; LocationDTO tolocation = null;
if (toloc != null) if (toloc != null)

Loading…
Cancel
Save