Explorar o código

封装的报表类方法

gogs hai 3 semanas
pai
achega
0c30ecb8f1
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/Service/StatisticService.php

+ 2 - 2
app/Service/StatisticService.php

@@ -574,7 +574,7 @@ class StatisticService extends StatisticCommonService
         $item_list = $item->where('del_time', 0)
             ->where(function ($query) use ($month_start, $month_end) {
                 $query->where('start_time', '>=', $month_start)
-                    ->where('end_time', '<', $month_end);
+                    ->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) {
@@ -605,7 +605,7 @@ class StatisticService extends StatisticCommonService
                 "type"
             )->get()->toArray();
         list($fee_amount, $fee_type_list) = $this->auxiliaryGroupListByRoot($auxiliary_list, $fee);
-
+        dd($item_key_list);
         //找到项目和设备的费用然后进行比例计算
 
         $return = [];