正在显示
1 个修改的文件
包含
5 行增加
和
1 行删除
| @@ -164,7 +164,11 @@ class ProductController extends BaseController | @@ -164,7 +164,11 @@ class ProductController extends BaseController | ||
| 164 | $query = $query->where('title','like','%'.$this->map['title'].'%'); | 164 | $query = $query->where('title','like','%'.$this->map['title'].'%'); |
| 165 | } | 165 | } |
| 166 | if(isset($this->map['status'])){ | 166 | if(isset($this->map['status'])){ |
| 167 | - $query = $query->where('status',$this->map['status']); | 167 | + if($this->map['status'] == 0){ |
| 168 | + $query = $query->whereIn('status',[0,3]); | ||
| 169 | + }else{ | ||
| 170 | + $query = $query->where('status',$this->map['status']); | ||
| 171 | + } | ||
| 168 | } | 172 | } |
| 169 | if(isset($this->map['created_uid'])){ | 173 | if(isset($this->map['created_uid'])){ |
| 170 | $query = $query->where('created_uid',$this->map['created_uid']); | 174 | $query = $query->where('created_uid',$this->map['created_uid']); |
-
请 注册 或 登录 后发表评论