|
|
@ -28,7 +28,6 @@ public class CustomerProductionReturnNoteAppService : |
|
|
|
{ |
|
|
|
private readonly ICustomerProductionReturnNoteManager _CustomerProductionReturnNoteManager; |
|
|
|
|
|
|
|
|
|
|
|
private readonly ICustomerItemAppService _customerItemAppService; |
|
|
|
|
|
|
|
private readonly ICustomerAppService _customerAppService; |
|
|
@ -43,12 +42,8 @@ public class CustomerProductionReturnNoteAppService : |
|
|
|
ICustomerAppService customerAppService |
|
|
|
) : base(repository) |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
_customerItemAppService = customerItemAppService; |
|
|
|
|
|
|
|
_salePriceSheetAppService = salePriceSheetAppService; |
|
|
|
|
|
|
|
_CustomerProductionReturnNoteManager = CustomerProductionReturnNoteManager; |
|
|
|
_customerAppService = customerAppService; |
|
|
|
} |
|
|
@ -56,8 +51,6 @@ public class CustomerProductionReturnNoteAppService : |
|
|
|
[HttpGet("{id}")] |
|
|
|
public override async Task<CustomerProductionReturnNoteDTO> GetAsync(Guid id) |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
var entity=await base.GetAsync(id).ConfigureAwait(false); |
|
|
|
|
|
|
|
foreach (var itm in entity.Details) |
|
|
@ -65,12 +58,7 @@ public class CustomerProductionReturnNoteAppService : |
|
|
|
itm.CustomerCode=entity.CustomerCode; |
|
|
|
itm.CustomerName=entity.CustomerName; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return entity; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -96,14 +84,6 @@ public class CustomerProductionReturnNoteAppService : |
|
|
|
throw new UserFriendlyException($"未{entity.CustomerCode}查到客户信息!"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 客户名称
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var parts= input.Details.Select(itm => itm.ItemCode).Distinct(); |
|
|
|
|
|
|
|
//var ls=await IsExistCustomerItemPrice(parts.ToList(),input.CustomerCode).ConfigureAwait(false);
|
|
|
@ -122,7 +102,13 @@ public class CustomerProductionReturnNoteAppService : |
|
|
|
|
|
|
|
var custitmDetail = await _customerItemAppService.GetListByPartsAsync(parts.ToList()).ConfigureAwait(false); |
|
|
|
|
|
|
|
var checkPart= from itm in entity.Details.ToList() |
|
|
|
//var query= from itm in custitmDetail join itm1 in cust
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var checkPart= |
|
|
|
from itm in entity.Details.ToList() |
|
|
|
join itm1 in custitmDetail |
|
|
|
on itm.ItemCode equals itm1.ItemCode |
|
|
|
into temp |
|
|
|