cqpCow před 1 rokem
rodič
revize
a0f11ba0b3
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      app/Service/ConstructionService.php

+ 1 - 0
app/Service/ConstructionService.php

@@ -477,6 +477,7 @@ class ConstructionService extends Service
             ->select('title','id','model_type','order_number','customer_id','customer_contact_id','install_method','install_position','sales_order_id','construction_fee','construction_time','handover_time','urgency','crt_id','crt_time','mark','state','address1','address2','introduction','service_price','storehouse_id','start_time','end_time')
             ->orderby('id', 'desc');
 
+        if(isset($data['state'])) $model->where('state', $data['state']);
         if(! empty($data['title'])) $model->where('title', 'LIKE', '%'.$data['title'].'%');
         if(! empty($data['model_type'])) $model->where('model_type',$data['model_type']);
         if(! empty($data['time_type'])) {