合并分支 'lyh-server' 到 'master'
gx 查看合并请求 !2521
正在显示
1 个修改的文件
包含
10 行增加
和
0 行删除
| @@ -23,6 +23,7 @@ use App\Models\Devops\ServersIp; | @@ -23,6 +23,7 @@ use App\Models\Devops\ServersIp; | ||
| 23 | use App\Models\Domain\DomainCreateTask; | 23 | use App\Models\Domain\DomainCreateTask; |
| 24 | use App\Models\Domain\DomainInfo; | 24 | use App\Models\Domain\DomainInfo; |
| 25 | use App\Models\Domain\DomainInfo as DomainInfoModel; | 25 | use App\Models\Domain\DomainInfo as DomainInfoModel; |
| 26 | +use App\Models\Geo\GeoLink; | ||
| 26 | use App\Models\HomeCount\Count; | 27 | use App\Models\HomeCount\Count; |
| 27 | use App\Models\Industry\ProjectIndustry; | 28 | use App\Models\Industry\ProjectIndustry; |
| 28 | use App\Models\Inquiry\InquirySet; | 29 | use App\Models\Inquiry\InquirySet; |
| @@ -329,6 +330,15 @@ class ProjectController extends BaseController | @@ -329,6 +330,15 @@ class ProjectController extends BaseController | ||
| 329 | if(isset($this->map['project_type'])){ | 330 | if(isset($this->map['project_type'])){ |
| 330 | $query = $query->where('gl_project.project_type',$this->map['project_type']); | 331 | $query = $query->where('gl_project.project_type',$this->map['project_type']); |
| 331 | } | 332 | } |
| 333 | + if(isset($this->param['geo'])){ | ||
| 334 | + if($this->param['geo'] == 1){ | ||
| 335 | + $query = $query->where('gl_project.geo_status',1); | ||
| 336 | + }else{ | ||
| 337 | + $ids = GeoLink::pluck('project_id')->unique()->values()->all(); | ||
| 338 | + $query = $query->whereIn('gl_project.id',$ids); | ||
| 339 | + } | ||
| 340 | + | ||
| 341 | + } | ||
| 332 | return $query; | 342 | return $query; |
| 333 | } | 343 | } |
| 334 | 344 |
-
请 注册 或 登录 后发表评论