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) private List<string[]> GetData(int caseId, DateTime startDate, DateTime endDate)
{ {
var statusData = _statusHistoryRepository var statusData = _statusHistoryRepository
.ReadStatusHistories() .ReadStatusHistories(startDate, endDate, caseId)
// .ReadStatusHistories(startDate, endDate, caseId)
.Where(x => x.CreatedAt >= startDate && x.CreatedAt <= endDate && x.CaseId == caseId)
.GroupBy(x => (x.Status, x.CreatedAt.Date)) .GroupBy(x => (x.Status, x.CreatedAt.Date))
.Select(x => new .Select(x => new
{ {