Commit 53f179ef authored by hujun's avatar hujun

确认无重盘楼盘字典

parent cad77f4f
......@@ -21,6 +21,7 @@ use app\model\GHousesVideo;
use app\model\GImageDepot;
use app\model\GLandlordPhone;
use app\model\OBargainModel;
use app\model\OfficeGBuilding;
use app\model\OReportModel;
use app\model\Regions;
use think\Log;
......@@ -1059,6 +1060,32 @@ class Shop extends Basic
return $this->response($code, $msg, $data);
}
/**
* 搜索楼盘字典地址
*
* @return \think\Response
*/
public function getOfficeBuildingAddress() {
if (empty($this->params['address']) || empty($this->params['city'])) {
return $this->response(101, '参数错误');
}
$data = [];
$msg = "";
try {
$m_house = new OfficeGBuilding();
$where['internal_address'] = ['LIKE', '%'. $this->params['address']. '%'];
$where['city'] = $this->params['city'];
$data = $m_house->getFindData('id,address', $where);
$code = 200;
} catch (\Exception $e) {
$code = 101;
$msg = "内部错误:".$e->getMessage();
}
return $this->response($code, $msg, $data);
}
private function getBusinessDistrictNameById($businessDistrictId){
$model = new GBusinessDistrict();
$params["id"] = $businessDistrictId;
......
......@@ -970,6 +970,7 @@ Route::group('office', [
'delBuildingFile' => ['api_broker/OfficeBuilding/delHouseFile', ['method' => 'POST']],//删除楼盘图片
'getBuildingSearch' => ['api_broker/OfficeRoom/getBuildingSearch', ['method' => 'GET']],//搜索楼盘
'getBuildingDetail' => ['api_broker/OfficeRoom/getBuildingDetail', ['method' => 'GET']],//楼盘详情
'getOfficeBuildingAddress' => ['api_broker/shop/getOfficeBuildingAddress', ['method' => 'GET']],//确认无重盘楼盘字典
'getOfficeRoomInfo' => [ 'api_broker/OfficeRoom/getOfficeRoomInfo', [ 'method' => 'GET|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