|
@ -49,8 +49,8 @@ public class PurchasePriceSheetAppService : SfsBaseDataAppServiceBase<PurchasePr |
|
|
public virtual async Task<bool> CheckPurPriceAsync( string supplierCode, string itemCode) |
|
|
public virtual async Task<bool> CheckPurPriceAsync( string supplierCode, string itemCode) |
|
|
{ |
|
|
{ |
|
|
bool result = false; |
|
|
bool result = false; |
|
|
var entitys = await _repository.GetListAsync(p => p.SupplierCode == supplierCode && p.ItemCode == itemCode && p.SupplierCode == supplierCode, true).ConfigureAwait(false); |
|
|
var entitys = await _repository.GetListAsync(p => p.SupplierCode == supplierCode && p.ItemCode == itemCode).ConfigureAwait(false); |
|
|
if (entitys.Count != 0) result = true; |
|
|
if (entitys.Count == 0) result = true; |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|