增加出库单下拉接口

This commit is contained in:
18942506660
2023-11-13 16:10:27 +08:00
parent 42f8a6c049
commit 1f6f25b5e4
4 changed files with 39 additions and 2 deletions

View File

@@ -411,5 +411,15 @@ namespace WMS.Web.Repositories
return false;
}
}
public async Task<List<string>> GetOutStockTaskNosByNo(string billNo)
{
return await _context.OutStockTask.Include(x => x.Details)
.Where(f => (EF.Functions.Like(f.BillNo, "%" + billNo + "%") ||
EF.Functions.Like(f.SourceBillNo, "%" + billNo + "%")) &&
(f.Status == OutStockStatus.Part || f.Status == OutStockStatus.Wait))
.Select(s => s.BillNo)
.ToListAsync();
}
}
}