正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -49,8 +49,6 @@ class ProjectController extends BaseController | @@ -49,8 +49,6 @@ class ProjectController extends BaseController | ||
| 49 | if(isset($this->param['type']) && $this->param['type'] == Project::TYPE_ZERO){ | 49 | if(isset($this->param['type']) && $this->param['type'] == Project::TYPE_ZERO){ |
| 50 | $map[] = ['type',Project::TYPE_ZERO]; | 50 | $map[] = ['type',Project::TYPE_ZERO]; |
| 51 | } | 51 | } |
| 52 | - var_dump($map); | ||
| 53 | - die(); | ||
| 54 | //搜索技术组 | 52 | //搜索技术组 |
| 55 | if(!empty($this->param['dep_id'])){ | 53 | if(!empty($this->param['dep_id'])){ |
| 56 | $map[] = ['id', 'in', DeployBuild::where('dept_id', $this->param['dep_id'])->pluck('project_id')->toArray()]; | 54 | $map[] = ['id', 'in', DeployBuild::where('dept_id', $this->param['dep_id'])->pluck('project_id')->toArray()]; |
| @@ -74,6 +72,8 @@ class ProjectController extends BaseController | @@ -74,6 +72,8 @@ class ProjectController extends BaseController | ||
| 74 | } | 72 | } |
| 75 | } | 73 | } |
| 76 | $sort = ['id' => 'desc']; | 74 | $sort = ['id' => 'desc']; |
| 75 | + var_dump($map); | ||
| 76 | + die(); | ||
| 77 | $data = $logic->getList($map, $sort,['*'],$this->row); | 77 | $data = $logic->getList($map, $sort,['*'],$this->row); |
| 78 | 78 | ||
| 79 | return $this->success($data); | 79 | return $this->success($data); |
-
请 注册 或 登录 后发表评论