|
@ -121,7 +121,7 @@ class CategorySearch extends Category |
|
|
* 条件筛选 |
|
|
* 条件筛选 |
|
|
*/ |
|
|
*/ |
|
|
private function filter($query, $dataProvider){ |
|
|
private function filter($query, $dataProvider){ |
|
|
$query->andFilterWhere(['is_delete' => 0]); |
|
|
|
|
|
|
|
|
$query->andFilterWhere(['is_delete' => Category::IS_DELETE_NO]); |
|
|
if (!$this->validate()) { |
|
|
if (!$this->validate()) { |
|
|
// uncomment the following line if you do not want to return any records when validation fails
|
|
|
// uncomment the following line if you do not want to return any records when validation fails
|
|
|
// $query->where('0=1');
|
|
|
// $query->where('0=1');
|
|
|