diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAppService.cs index 5a4d0c2d3..51165c654 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/CustomerProductionReturnNotes/CustomerProductionReturnNoteAppService.cs @@ -59,19 +59,12 @@ public class CustomerProductionReturnNoteAppService : [HttpGet("{id}")] public override async Task GetAsync(Guid id) { - - var entity=await base.GetAsync(id).ConfigureAwait(false); - foreach (var itm in entity.Details) { itm.CustomerCode=entity.CustomerCode; itm.CustomerName=entity.CustomerName; } - - - - return entity; } @@ -120,9 +113,9 @@ public class CustomerProductionReturnNoteAppService : foreach (var itm in input.Details) { - var part= custitmDetail.FirstOrDefault(p => p.CustomerCode == entity.CustomerCode && p.ItemCode==itm.ItemCode); - if (part == null) - { + var part = custitmDetail.FirstOrDefault(p => p.CustomerCode == entity.CustomerCode && p.ItemCode == itm.ItemCode); + if (part == null) + { throw new UserFriendlyException($"零件编号{itm.ItemCode}客户编码{entity.CustomerCode}在客户物品关系表中不存在!"); } }