正在显示
1 个修改的文件
包含
7 行增加
和
6 行删除
| @@ -36,11 +36,8 @@ class RenewProjectController extends BaseController | @@ -36,11 +36,8 @@ class RenewProjectController extends BaseController | ||
| 36 | */ | 36 | */ |
| 37 | public function lists(Project $project){ | 37 | public function lists(Project $project){ |
| 38 | $arr = $this->getLessThanFifteenProjectId(); | 38 | $arr = $this->getLessThanFifteenProjectId(); |
| 39 | - $map = []; | ||
| 40 | - $this->searchParam($map,$this->map,$arr); | ||
| 41 | - //按类型搜索 | ||
| 42 | - $map['id'] = ['in', $arr]; | ||
| 43 | - $filed = ['id', 'title', 'mysql_id' ,'channel','cooperate_date' ,'type', 'remain_day' ,'created_at']; | 39 | + $map = $this->searchParam($this->map,$arr); |
| 40 | + $filed = ['id', 'title', 'mysql_id' ,'channel','cooperate_date' ,'type', 'remain_day' ,'created_at','delete_status']; | ||
| 44 | $lists = $project->formatQuery($map)->select($filed)->with('payment')->with('deploy_build') | 41 | $lists = $project->formatQuery($map)->select($filed)->with('payment')->with('deploy_build') |
| 45 | ->with('deploy_optimize')->with('online_check')->paginate($this->row, ['*'], 'page', $this->page); | 42 | ->with('deploy_optimize')->with('online_check')->paginate($this->row, ['*'], 'page', $this->page); |
| 46 | if(!empty($lists)){ | 43 | if(!empty($lists)){ |
| @@ -82,7 +79,8 @@ class RenewProjectController extends BaseController | @@ -82,7 +79,8 @@ class RenewProjectController extends BaseController | ||
| 82 | * @method :post | 79 | * @method :post |
| 83 | * @time :2023/8/30 10:30 | 80 | * @time :2023/8/30 10:30 |
| 84 | */ | 81 | */ |
| 85 | - public function searchParam(&$map,$param,&$arr){ | 82 | + public function searchParam($param,&$arr){ |
| 83 | + $map = []; | ||
| 86 | //按类型搜索 | 84 | //按类型搜索 |
| 87 | if(!empty($param['search']) && !empty($param['search_type'])){ | 85 | if(!empty($param['search']) && !empty($param['search_type'])){ |
| 88 | if($this->param['search_type'] == 'domain'){ | 86 | if($this->param['search_type'] == 'domain'){ |
| @@ -92,6 +90,9 @@ class RenewProjectController extends BaseController | @@ -92,6 +90,9 @@ class RenewProjectController extends BaseController | ||
| 92 | $map[$this->param['search_type']] = ['like', "%{$this->param['search']}%"]; | 90 | $map[$this->param['search_type']] = ['like', "%{$this->param['search']}%"]; |
| 93 | } | 91 | } |
| 94 | } | 92 | } |
| 93 | + //按类型搜索 | ||
| 94 | + $map['id'] = ['in', $arr]; | ||
| 95 | + $map['delete_status'] = 0; | ||
| 95 | return $map; | 96 | return $map; |
| 96 | } | 97 | } |
| 97 | 98 |
-
请 注册 或 登录 后发表评论