作者 lyh

gx

@@ -142,8 +142,8 @@ class ProductController extends BaseController @@ -142,8 +142,8 @@ class ProductController extends BaseController
142 if(isset($this->map['status'])){ 142 if(isset($this->map['status'])){
143 $query = $query->where('status',$this->map['status']); 143 $query = $query->where('status',$this->map['status']);
144 } 144 }
145 - if(!empty($this->map['start_at']) && !empty($this->map['end_at'])){  
146 - $query->whereBetween('created_at', [$this->map['start_at'],$this->map['end_at']]); 145 + if(!empty($this->map['created_at']) && !empty($this->map['created_at'])){
  146 + $query->whereBetween('created_at', $this->map['created_at'][1]);
147 } 147 }
148 return $query; 148 return $query;
149 } 149 }