Forráskód Böngészése

值班管理统计修改bug

tangjiang 3 napja
szülő
commit
b886298249
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      src/Hotline.Api/Controllers/SchedulingController.cs

+ 2 - 2
src/Hotline.Api/Controllers/SchedulingController.cs

@@ -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)
                     })