add recalculate values

This commit is contained in:
MahanCh
2025-04-30 14:55:38 +03:30
parent 4ec4935a1d
commit 9592960a40
21 changed files with 1628 additions and 540 deletions

View File

@@ -2049,5 +2049,12 @@ public class RollCallRepository : RepositoryBase<long, RollCall>, IRollCallRepos
#endregion
}
public async Task<List<RollCall>> GetRollCallsUntilNowWithWorkshopIdEmployeeIds(long workshopId, List<long> employeeIds, DateTime fromDate)
{
return await _context.RollCalls.Where(x =>
x.ShiftDate >= fromDate && x.WorkshopId == workshopId && employeeIds.Contains(x.EmployeeId) &&
x.EndDate != null).ToListAsync();
}
}