|
...
|
...
|
@@ -164,7 +164,11 @@ class ProductController extends BaseController |
|
|
|
$query = $query->where('title','like','%'.$this->map['title'].'%');
|
|
|
|
}
|
|
|
|
if(isset($this->map['status'])){
|
|
|
|
$query = $query->where('status',$this->map['status']);
|
|
|
|
if($this->map['status'] == 0){
|
|
|
|
$query = $query->whereIn('status',[0,3]);
|
|
|
|
}else{
|
|
|
|
$query = $query->where('status',$this->map['status']);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(isset($this->map['created_uid'])){
|
|
|
|
$query = $query->where('created_uid',$this->map['created_uid']);
|
...
|
...
|
|