This commit is contained in:
Maxim 2024-12-25 01:34:08 +04:00
parent 219abbc680
commit ee92a2b66f

View File

@ -49,9 +49,7 @@ internal class TableReport
private List<string[]> GetData(int caseId, DateTime startDate, DateTime endDate)
{
var statusData = _statusHistoryRepository
.ReadStatusHistories()
// .ReadStatusHistories(startDate, endDate, caseId)
.Where(x => x.CreatedAt >= startDate && x.CreatedAt <= endDate && x.CaseId == caseId)
.ReadStatusHistories(startDate, endDate, caseId)
.GroupBy(x => (x.Status, x.CreatedAt.Date))
.Select(x => new
{