Browse Source

TransferNote加Agv调用

Agv分支2024-11-19
赵新宇 5 months ago
parent
commit
885dea51f5
  1. 6
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/TransferNotes/TransferNoteAppService.cs

6
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}没查到"); errors.Add($"来源起始点{detail.BeginPosition}没查到");
} }
LocationDTO fromlocation = null; LocationDTO fromlocation = null;
if (fromloc != null) if (fromloc != null)
{ {
fromlocation = await _locationAppService.GetByCodeAsync(fromloc.LocationCode).ConfigureAwait(false); fromlocation = await _locationAppService.GetByCodeAsync(fromloc.LocationCode).ConfigureAwait(false);
@ -712,16 +710,13 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase
{ {
errors.Add($"来源起始点{detail.BeginPosition}库位没查到"); errors.Add($"来源起始点{detail.BeginPosition}库位没查到");
} }
var toloc = await _postionLocationAppService.GetByCodeAsync(detail.EndPosition) var toloc = await _postionLocationAppService.GetByCodeAsync(detail.EndPosition)
.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)
{ {
tolocation = await _locationAppService.GetByCodeAsync(toloc.LocationCode).ConfigureAwait(false); tolocation = await _locationAppService.GetByCodeAsync(toloc.LocationCode).ConfigureAwait(false);
@ -735,7 +730,6 @@ public class TransferNoteAppService : SfsStoreWithDetailsAppServiceBase
{ {
errors.Add($"物料号{detail.MatCode}不在任务明细内!"); errors.Add($"物料号{detail.MatCode}不在任务明细内!");
} }
if (errors.Count > 0) if (errors.Count > 0)
{ {
return ret = new AgvResultObject() return ret = new AgvResultObject()

Loading…
Cancel
Save