|
...
|
...
|
@@ -433,4 +433,21 @@ class ProjectController extends BaseController |
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS, ['in_service' => $in_service]);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 根据渠道商查询项目
|
|
|
|
* @author zbj
|
|
|
|
* @date 2023/9/11
|
|
|
|
*/
|
|
|
|
public function getProjectByChannel(){
|
|
|
|
$source_id = $this->param['channel_id']; //原系统渠道id
|
|
|
|
$size = $this->param['page_size'] ?? 20;
|
|
|
|
$channel = Channel::where('source_id', $source_id)->first();
|
|
|
|
if(!$channel){
|
|
|
|
$this->response('渠道不存在',Code::SYSTEM_ERROR);
|
|
|
|
}
|
|
|
|
|
|
|
|
$list = Project::whereJsonContains('channel->channel_id', $channel->id)->orderBy('id', 'desc')->paginate($size);
|
|
|
|
$this->response('success',Code::SUCCESS, $list);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|