|
@@ -11,8 +11,8 @@ class BaseModel extends Model
|
|
|
protected $data = [];
|
|
|
protected $query;
|
|
|
protected array $select = [];
|
|
|
- protected int $is_status_search = 1;// 默认使用 status = 1 筛选
|
|
|
- protected int $is_delete_search = 1;// 默认使用 is_delete = 0 筛选
|
|
|
+ protected int $is_status_search = 0;// 默认使用 status = 1 筛选
|
|
|
+ protected int $is_delete_search = 0;// 默认使用 is_delete = 0 筛选
|
|
|
|
|
|
/**
|
|
|
* 筛选条件
|
|
@@ -94,7 +94,7 @@ class BaseModel extends Model
|
|
|
count($with) > 0 && $query->with($with);
|
|
|
|
|
|
// 规避 禁用 和 删除 数据
|
|
|
- $this->is_status_search === 1 && $query->where('status', 'normal');
|
|
|
+ $this->is_status_search === 1 && $query->where('status', 1);
|
|
|
$this->is_delete_search === 1 && $query->whereNull('deletetime');
|
|
|
|
|
|
return $this->catchData(json_decode(json_encode($query->select()),true));
|