|
...
|
...
|
@@ -571,7 +571,8 @@ class ProjectController extends BaseController |
|
|
|
* @date 2023/9/11
|
|
|
|
*/
|
|
|
|
public function getProjectByChannel(){
|
|
|
|
$id = $this->param['id'] ?? [];
|
|
|
|
$id = $this->param['id'] ?? '';
|
|
|
|
$notice_order_id = $this->param['notice_order_id'] ?? '';
|
|
|
|
$source_id = $this->param['channel_id'] ?? 0; //原系统渠道id
|
|
|
|
$size = $this->param['page_size'] ?? 20;
|
|
|
|
$type = $this->param['type'] ?? '';
|
|
...
|
...
|
@@ -595,10 +596,15 @@ class ProjectController extends BaseController |
|
|
|
$id = explode(',', $id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if ($notice_order_id){
|
|
|
|
if(!is_array($notice_order_id)){
|
|
|
|
$notice_order_id = explode(',', $notice_order_id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
$data = Project::with(['deploy_build', 'deploy_optimize', 'online_check'])
|
|
|
|
->where('delete_status', 0)
|
|
|
|
->where(function ($query) use ($channel_id, $type, $company, $id){
|
|
|
|
->where(function ($query) use ($channel_id, $type, $company, $id, $notice_order_id){
|
|
|
|
if ($channel_id) {
|
|
|
|
$query->where('channel->channel_id', $channel_id);
|
|
|
|
}
|
|
...
|
...
|
@@ -611,6 +617,9 @@ class ProjectController extends BaseController |
|
|
|
if ($id) {
|
|
|
|
$query->whereIn('id', $id);
|
|
|
|
}
|
|
|
|
if ($notice_order_id) {
|
|
|
|
$query->whereIn('notice_order_id', $notice_order_id);
|
|
|
|
}
|
|
|
|
})->orderBy('id', 'desc')->paginate($size)->toArray();
|
|
|
|
$list = [];
|
|
|
|
foreach ($data['list'] as $item){
|
...
|
...
|
|