修复bug

This commit is contained in:
18942506660
2023-12-18 16:11:56 +08:00
parent 3fc73df1d7
commit f171eabaa5
4 changed files with 5 additions and 5 deletions

View File

@@ -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));