Commit fc32ef0d authored by hujun's avatar hujun

1

parent 532a4892
...@@ -62,6 +62,7 @@ class Shop extends Basic ...@@ -62,6 +62,7 @@ class Shop extends Basic
"site_area" => 4, //来源 1c首页 2c搜索 3b首页 4b搜索 5b报备 "site_area" => 4, //来源 1c首页 2c搜索 3b首页 4b搜索 5b报备
// "title" => "vv", //1,2 external_title ,3,4internal_title // "title" => "vv", //1,2 external_title ,3,4internal_title
"house_id" => 4, "house_id" => 4,
"fit_industry_type" => "",//适合业态
"is_carefully_chosen" => 0, //精选商铺--0否1是 "is_carefully_chosen" => 0, //精选商铺--0否1是
"shop_type" => 0, //商铺类型(0商场,1街铺) "shop_type" => 0, //商铺类型(0商场,1街铺)
"address" => "111", "address" => "111",
...@@ -137,6 +138,10 @@ class Shop extends Basic ...@@ -137,6 +138,10 @@ class Shop extends Basic
$conditions['create_time'] = array('between', array($start_time, $end_time)); $conditions['create_time'] = array('between', array($start_time, $end_time));
} }
if (isset($params['fit_industry_type'])) { //适合业态
$conditions['fit_industry_type'] = array('like', "%" . trim($params['fit_industry_type']) . "%");
}
$order_ = ""; $order_ = "";
$spTagArr = array(); $spTagArr = array();
switch ($params['site_area']) { switch ($params['site_area']) {
...@@ -216,9 +221,7 @@ class Shop extends Basic ...@@ -216,9 +221,7 @@ class Shop extends Basic
return $this->response("101", "请求数据异常"); return $this->response("101", "请求数据异常");
} }
if (isset($params['fit_industry_type'])) { //业态
$conditions['fit_industry_type'] = array('like', "%" . trim($params['fit_industry_type']) . "%");
}
if (!empty($conditions)) { if (!empty($conditions)) {
$conditions['status'] = array('eq', 1); //只显示上架 $conditions['status'] = array('eq', 1); //只显示上架
if ($params['site_area'] == 1 || $params['site_area'] == 2) { if ($params['site_area'] == 1 || $params['site_area'] == 2) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment