cqpCow há 11 meses atrás
pai
commit
1398612626
1 ficheiros alterados com 5 adições e 0 exclusões
  1. 5 0
      app/Service/CustomerService.php

+ 5 - 0
app/Service/CustomerService.php

@@ -650,6 +650,11 @@ class CustomerService extends Service
                 ->get()->toArray();
             $model->whereIn('id',array_column($customer_info,'customer_id'));
         }
+        if(! empty($data['fp_time'][0]) && ! empty($data['fp_time'][1])){
+            $return = $this->changeDateToTimeStampAboutRange($data['fp_time']);
+            $model->where('fp_time','>=',$return[0]);
+            $model->where('fp_time','<=',$return[1]);
+        }
 
         $list = $this->limit($model,'',$data);
         $list = $this->fillData($list,$data);