You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
88 lines
5.8 KiB
88 lines
5.8 KiB
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* User: Administrator
|
|
* Date: 2018/3/29
|
|
* Time: 10:03
|
|
*/
|
|
|
|
namespace app\home\controller;
|
|
use think\Db;
|
|
|
|
/**
|
|
* Class Lbcontetn
|
|
* @package app\home\controller轮播搜索
|
|
*/
|
|
class Lbcontetn extends Base
|
|
{
|
|
|
|
public function lb_list(){
|
|
try{
|
|
$whole =input('name');
|
|
$sql='select * from wjs_zgwhjf_gg where gg_status=1 and (gg_id like \'%'.$whole.'%\' or gg_museumunt like \'%'.$whole.'%\' ) order by gg_time desc ';
|
|
$home_manager=Db::query($sql);//掌柜文化金服公馆-搜索
|
|
|
|
$sql='select * from wjs_zgwhjf_sc where sc_status=1 and (sc_product_code like \'%'.$whole.'%\' or sc_product_name like \'%'.$whole.'%\' ) order by sc_time desc ';
|
|
$home_shopping=Db::query($sql);//掌柜文化金服商城-搜索
|
|
|
|
$sql='select * from wjs_zgwhjf_yp where yp_status=1 and (yp_auction_code like \'%'.$whole.'%\' or yp_artist_name like \'%'.$whole.'%\' ) order by yp_time desc ';
|
|
$home_making=Db::query($sql);//掌柜文化金服艺拍-搜索
|
|
|
|
$sql='select * from wjs_zgwhjf_ysth where ysth_status=1 and (ysth_code like \'%'.$whole.'%\' or ysth_product_name like \'%'.$whole.'%\' ) order by ysth_time desc ';
|
|
$home_shooting=Db::query($sql); //掌柜文化金服艺术投行-搜索
|
|
|
|
|
|
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=49 and c_qyfzjd=51 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
|
|
or c_ssbk=1 and c_business_type=49 and c_qyfzjd=52 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\')
|
|
or c_ssbk=1 and c_business_type=49 and c_qyfzjd=53 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like\'%'.$whole.'%\')
|
|
or c_ssbk=1 and c_business_type=49 and c_qyfzjd=54 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc';
|
|
$home_data_noe=Db::query($sql);//文化产业板挂牌展示
|
|
|
|
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=50 and c_qyfzjd=51 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
|
|
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=52 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\')
|
|
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=53 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like\'%'.$whole.'%\')
|
|
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=54 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc';
|
|
$home_data_two=Db::query($sql);//文化产业挂牌交易
|
|
|
|
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=49 and c_qyfzjd=51 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
|
|
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=51 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc ';
|
|
$home_data_three=Db::query($sql);//文化产业板文化企业上市公会
|
|
|
|
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=49 and c_qyfzjd=52 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
|
|
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=52 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc ';
|
|
$home_data_four=Db::query($sql);//文化产业板天使板
|
|
|
|
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=49 and c_qyfzjd=53 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
|
|
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=53 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc ';
|
|
$home_data_five=Db::query($sql);//文化产业板养成板
|
|
|
|
$sql='select * from wjs_cult4info where c_ssbk=1 and c_business_type=49 and c_qyfzjd=54 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' )
|
|
or c_ssbk=1 and c_business_type=50 and c_qyfzjd=54 and c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\') order by c_time desc';
|
|
$home_data_six=Db::query($sql);//文化产业板标准板
|
|
|
|
$sql='select * from wjs_gyxm where c_status=1 and (c_name like \'%'.$whole.'%\' or c_code like \'%'.$whole.'%\' ) order by c_time desc';
|
|
$gy_list=Db::query($sql);//国有项目数据
|
|
|
|
|
|
$volist =array();
|
|
$volist["home_manager"]=$home_manager; //掌柜文化金服公馆
|
|
$volist["home_shopping"]=$home_shopping; //掌柜文化金服商城
|
|
$volist["home_making"]=$home_making; //掌柜文化金服艺拍
|
|
$volist["home_shooting"]=$home_shooting; //掌柜文化金服艺术投行
|
|
|
|
$volist["home_data_noe"]=$home_data_noe; //文化产业板挂牌展示
|
|
$volist["home_data_two"]=$home_data_two; //文化产业板挂牌交易
|
|
$volist["home_data_three"]=$home_data_three; //文化产业板文化企业上市公会
|
|
$volist["home_data_four"]=$home_data_four; //文化产业板天使板
|
|
$volist["home_data_five"]=$home_data_five; //文化产业板养成板
|
|
$volist["home_data_six"]=$home_data_six; //文化产业板标准板
|
|
|
|
$volist["gy_list"]=$gy_list; //国有项目数据
|
|
|
|
return json(['code'=>1,'msg'=>'成功','list'=>$volist]);
|
|
}catch (\Exception $e){
|
|
return json(['code'=>0,'msg'=>'失败']);
|
|
}
|
|
|
|
}
|
|
}
|