正在显示
1 个修改的文件
包含
3 行增加
和
5 行删除
| @@ -36,11 +36,9 @@ class RenewProjectController extends BaseController | @@ -36,11 +36,9 @@ class RenewProjectController extends BaseController | ||
| 36 | public function lists(Project $project){ | 36 | public function lists(Project $project){ |
| 37 | $arr = $this->getLessThanFifteenProjectId(); | 37 | $arr = $this->getLessThanFifteenProjectId(); |
| 38 | $map = []; | 38 | $map = []; |
| 39 | - if(!empty($arr)){ | ||
| 40 | - $this->searchParam($map,$this->map,$arr); | ||
| 41 | - //按类型搜索 | ||
| 42 | - $map['id'] = ['in', $arr]; | ||
| 43 | - } | 39 | + $this->searchParam($map,$this->map,$arr); |
| 40 | + //按类型搜索 | ||
| 41 | + $map['id'] = ['in', $arr]; | ||
| 44 | $filed = ['id', 'title', 'mysql_id' ,'channel','cooperate_date' ,'type', 'created_at']; | 42 | $filed = ['id', 'title', 'mysql_id' ,'channel','cooperate_date' ,'type', 'created_at']; |
| 45 | $lists = $project->formatQuery($map)->select($filed)->with('payment')->with('deploy_build') | 43 | $lists = $project->formatQuery($map)->select($filed)->with('payment')->with('deploy_build') |
| 46 | ->with('deploy_optimize')->with('online_check')->paginate($this->row, ['*'], 'page', $this->page); | 44 | ->with('deploy_optimize')->with('online_check')->paginate($this->row, ['*'], 'page', $this->page); |
-
请 注册 或 登录 后发表评论