Commit 7c9b9628 authored by clone's avatar clone

商圈刷选

parent f8474de9
......@@ -65,6 +65,7 @@ class Shop extends Basic
"shop_type" => 0, //商铺类型(0商场,1街铺)
"address" => "111",
"disc" => "黄浦区",
"business_id" => 11,
"industry_type" => "休闲娱乐",
"shop_area_start" => 45,//面积起始范围 街铺start和end面积一样
"shop_area_end" => 65,//面积结束范围
......@@ -150,6 +151,9 @@ class Shop extends Basic
if (isset($params['disc'])) { //区域
$conditions['disc'] = array( 'eq', trim($params['disc']) );
}
if (isset($params['business_id'])) { //区域
$conditions['business_district_id'] = array( 'eq', trim($params['business_id']) );
}
if (isset($params['industry_type'])) { //业态
$conditions['industry_type'] = array( 'like', "%" . trim($params['industry_type']) . "%" );
......@@ -633,14 +637,15 @@ class Shop extends Basic
*
* @return \think\Response
*/
public function getBusinessAll() {
public function getBusinessAll()
{
$code = 200;
$msg = '';
$where['is_del'] = 0;
if ($this->params['name'] != NULL) {
$where['name'] = ['LIKE', '%'.$this->params['name'].'%'];
$where['name'] = [ 'LIKE', '%' . $this->params['name'] . '%' ];
}
if (!empty($this->params['province'])) {
......@@ -661,7 +666,7 @@ class Shop extends Basic
try {
$auth_group = New GBusinessDistrict();
$data = $auth_group->getList(1, 1000, 'id desc', $fields, $where);
$data = $auth_group->getList(1, 1000, 'id desc', $fields, $where);
} catch (\Exception $e) {
$code = 101;
$msg = $e->getMessage();
......
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