This commit is contained in:
tongfei
2023-11-13 16:13:36 +08:00
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();
}
}
}