Commit c3b32684 authored by hujun's avatar hujun

商圈列表

parent dd00f400
...@@ -134,6 +134,47 @@ class BusinessDistrict extends Basic ...@@ -134,6 +134,47 @@ class BusinessDistrict extends Basic
} }
} }
/**
* 获取全部商圈列表
*
* @return \think\Response
*/
public function getBusinessAll() {
$code = 200;
$msg = '';
$where['is_del'] = 0;
if ($this->params['name'] != NULL) {
$where['name'] = ['LIKE', '%'.$this->params['name'].'%'];
}
if (!empty($this->params['province'])) {
$where['province'] = $this->params['province'];
}
if (!empty($this->params['city'])) {
$where['city'] = $this->params['city'];
}
if (!empty($this->params['disc'])) {
$where['disc'] = $this->params['disc'];
}
$fields = 'id,name,province,city,disc,status,create_time';
try {
$auth_group = New GBusinessDistrict();
$data = $auth_group->getList(1, 1000, 'id desc', $fields, $where);
} catch (\Exception $e) {
$code = 101;
$msg = $e->getMessage();
$data = [];
}
return $this->response($code, $msg, $data);
}
/** /**
* 获取省市区数据 * 获取省市区数据
* *
......
...@@ -156,7 +156,8 @@ Route::group('index', [ ...@@ -156,7 +156,8 @@ Route::group('index', [
'delBusinessDistrict' => [ 'index/BusinessDistrict/del', [ 'method' => 'post' ] ], //删除商圈列表 'delBusinessDistrict' => [ 'index/BusinessDistrict/del', [ 'method' => 'post' ] ], //删除商圈列表
//商铺 //商铺
'BusinessList' => [ 'index/BusinessDistrict/getBusiness', [ 'method' => 'get' ] ], //获取商铺列表数据 'BusinessList' => [ 'index/BusinessDistrict/getBusiness', [ 'method' => 'get' ] ], //获取商圈
'getBusinessAll' => [ 'index/BusinessDistrict/getBusinessAll', [ 'method' => 'get' ] ], //获取商圈,不带分页
'houseEdit' => [ 'index/Houses/editV2', [ 'method' => 'get|post' ] ], //编辑商铺 'houseEdit' => [ 'index/Houses/editV2', [ 'method' => 'get|post' ] ], //编辑商铺
'houseAdd' => [ 'index/Houses/editV2', [ 'method' => 'get' ] ], //新增商铺 'houseAdd' => [ 'index/Houses/editV2', [ 'method' => 'get' ] ], //新增商铺
'houseDel' => [ 'index/Houses/del', [ 'method' => 'post' ] ], //删除商铺 'houseDel' => [ 'index/Houses/del', [ 'method' => 'post' ] ], //删除商铺
......
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