修复bug
This commit is contained in:
@@ -129,9 +129,9 @@ namespace WMS.Web.Repositories
|
||||
else//查其他单据(组织)
|
||||
query = query.Where(w => rec_id == w.order.ReceiptCustomerId && w.order.Type != OutStockType.Sal);
|
||||
}
|
||||
if (mIds.Count() != 0)
|
||||
if (!string.IsNullOrEmpty(dto.MaterialNumber))
|
||||
query = query.Where(w => mIds.Contains(w.detail.MaterialId));
|
||||
if (ids.Count() > 0)
|
||||
if (!string.IsNullOrEmpty(dto.Creator))
|
||||
query = query.Where(w => ids.Contains(w.order.CreatorId));
|
||||
if (!string.IsNullOrEmpty(dto.SourceBillNo))
|
||||
query = query.Where(w => w.detail.ErpDetails.Where(wd => EF.Functions.Like(wd.SourceBillNo, "%" + dto.SourceBillNo + "%")).Select(s => s.DetailId).Contains(w.detail.Id));
|
||||
|
||||
Reference in New Issue
Block a user