|
@@ -471,10 +471,10 @@ namespace Hotline.Api.Controllers
|
|
|
.WhereIF(dto.StartTime.HasValue, p => p.SchedulingTime >= dto.StartTime)
|
|
|
.WhereIF(dto.EndTime.HasValue, p => p.SchedulingTime <= dto.EndTime)
|
|
|
.WhereIF(!string.IsNullOrEmpty(dto.Keyword), p => p.SchedulingUserName == dto.Keyword)
|
|
|
- .GroupBy(p => p.SchedulingTime.Value.ToString("yyyy-MM-dd"))
|
|
|
+ .GroupBy(p => p.SchedulingTime.Value.ToString("yyyy-MM"))
|
|
|
.Select(p => new SchedulingStatisticsDto
|
|
|
{
|
|
|
- Date = p.SchedulingTime.Value.ToString("yyyy-MM-dd"),
|
|
|
+ Date = p.SchedulingTime.Value.ToString("yyyy-MM"),
|
|
|
UserName = p.SchedulingUserName,
|
|
|
Count = SqlFunc.AggregateCount(p.SchedulingUserName)
|
|
|
})
|