gogs 2 месяцев назад
Родитель
Сommit
59228bc34b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      app/Service/StatisticService.php

+ 2 - 2
app/Service/StatisticService.php

@@ -398,8 +398,8 @@ class StatisticService extends Service
         $item = Item::Clear($user, $data);
         $item_list = $item->where('del_time', 0)
             ->where(function ($query) use ($month_start, $month_end) {
-                $query->where('start_time', '>=', $month_start)
-                    ->orWhere('end_time', '<=', $month_end);
+                $query->where('start_time', '<=', $month_start)
+                    ->orWhere('end_time', '>=', $month_end);
             })->select("code", "title", "start_time", "end_time", "id", "state")->orderby("start_time","asc")->get()->toArray();
         $item_key_list = [];
         foreach ($item_list as $v) {