You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
796 B
PHP
29 lines
796 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers\API\mH5;
|
|
|
|
use App\Http\Controllers\Controller;
|
|
use Illuminate\Http\Request;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class IndustryController extends Controller
|
|
{
|
|
|
|
//获取行业列表
|
|
public function GetIndustry()
|
|
{
|
|
$institution_id=request('institution_id');
|
|
$alllist=DB::table('industry')->get();
|
|
$enablelist=DB::table('institution_seting')->where(['institution_id'=>$institution_id])->get();
|
|
$list=[];
|
|
foreach ($alllist as $key=>$item){
|
|
foreach ($enablelist as $K=>$it){
|
|
if($item->name == $it->small_check_type and $it->enable_yuyue==1){
|
|
$list[]=$item;
|
|
}
|
|
}
|
|
}
|
|
return \Yz::Return(true,'查询成功',$list);
|
|
}
|
|
}
|