正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -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 | } |
-
请 注册 或 登录 后发表评论