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