|
@@ -66,8 +66,15 @@ class Certificate extends Backend
|
|
|
return $this->selectpage();
|
|
|
}
|
|
|
[$where, $sort, $order, $offset, $limit] = $this->buildparams();
|
|
|
+ $input = input();
|
|
|
+ $filter = json_decode($input['filter'],true);
|
|
|
+ $where_get = [];
|
|
|
+ if(isset($filter['status']) && $filter['status'] == "2"){
|
|
|
+ $where_get['is_expire'] = 0;
|
|
|
+ };
|
|
|
$list = $this->model
|
|
|
->where($where)
|
|
|
+ ->where($where_get)
|
|
|
->with(['user','goods'])
|
|
|
->where('is_deleted',1)
|
|
|
->order($sort, $order)
|