修复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,7 +129,7 @@ namespace WMS.Web.Repositories
query = query.Where(w => w.moveBox.SrcSubStockId == dto.SrcSubStockId);
if (dto.DestSubStockId != null)
query = query.Where(w => w.moveBox.DestSubStockId == dto.DestSubStockId);
if (ids.Count() > 0)
if (!string.IsNullOrEmpty(dto.Creator))
query = query.Where(w => ids.Contains(w.moveBox.CreatorId));
if (!string.IsNullOrEmpty(dto.Box))
query = query.Where(w => EF.Functions.Like(w.box.BoxBillNo, "%" + dto.Box + "%"));