|
@ -102,7 +102,7 @@ public class CustomerProductionReturnNoteAppService : |
|
|
|
|
|
|
|
|
var parts= input.Details.Select(itm => itm.ItemCode).Distinct(); |
|
|
var parts= input.Details.Select(itm => itm.ItemCode).Distinct(); |
|
|
|
|
|
|
|
|
var custitmDetail = await _customerItemAppService.GetListByPartsAsync(parts.ToList()).ConfigureAwait(false); |
|
|
var custitmDetail = await _customerItemAppService.GetListByPartsAsync(parts.ToList()).ConfigureAwait(false); |
|
|
|
|
|
|
|
|
#region 20241230修改
|
|
|
#region 20241230修改
|
|
|
//var query = from itm in custitmDetail
|
|
|
//var query = from itm in custitmDetail
|
|
@ -123,7 +123,7 @@ public class CustomerProductionReturnNoteAppService : |
|
|
var part= custitmDetail.FirstOrDefault(p => p.CustomerCode == entity.CustomerCode && p.ItemCode==itm.ItemCode); |
|
|
var part= custitmDetail.FirstOrDefault(p => p.CustomerCode == entity.CustomerCode && p.ItemCode==itm.ItemCode); |
|
|
if (part == null) |
|
|
if (part == null) |
|
|
{ |
|
|
{ |
|
|
throw new UserFriendlyException($"零件编号{itm.ItemCode}客户编码{entity.CustomerCode}在客户物料关系表中不存在!"); |
|
|
throw new UserFriendlyException($"零件编号{itm.ItemCode}客户编码{entity.CustomerCode}在客户物品关系表中不存在!"); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
#endregion
|
|
|
#endregion
|
|
|