|
|
@ -54,20 +54,13 @@ public class CustomerProductionReturnNoteAppService : |
|
|
|
{ |
|
|
|
var entity = ObjectMapper.Map<CustomerProductionReturnNoteEditInput, CustomerProductionReturnNote>(input); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var parts= input.Details.Select(itm => itm.ItemCode).Distinct(); |
|
|
|
|
|
|
|
|
|
|
|
var ls=await IsExistCustomerItemRelationShip(parts.ToList(),input.CustomerCode).ConfigureAwait(false); |
|
|
|
|
|
|
|
if (ls.Count > 0) |
|
|
|
{ |
|
|
|
throw new UserFriendlyException($"客户零件关系表中没有查到客户为{input.CustomerCode}零件为{string.Join(",", ls.ToArray())}的零件号"); |
|
|
|
throw new UserFriendlyException($"客户零件关系表中没有查到客户为{input.CustomerCode}零件号为{string.Join(",", ls.ToArray())}的零件"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|