Commit 35bb2969 authored by hujun's avatar hujun

交通

parent 14b2c806
......@@ -261,11 +261,18 @@ class OfficeService
}
$m_business = new GBusinessDistrict();
$traffic_field = 'b.line_name_simple,b.name,a.distance';
foreach ($data as $k=>$v) {
if (isset($v['business_district_id'])) {
$data[$k]['business_name'] = $m_business->getFieldOneValue('name', ['id'=>$v['business_district_id']]);
}
$traffic = $this->m_building_stations->getListAll($traffic_field, ['building_id'=>$v['id']]);
if ($traffic) {
$data[$k]['traffic'] = $traffic;
} else {
$data[$k]['traffic'] = '';
}
}
$result['data'] = $data;
$result['status'] = 'successful';
......
......@@ -965,6 +965,7 @@ Route::group('office', [
'isShowAdjustment' => ['api_broker/OfficeOrderLog/isShowAdjustment', ['method' => 'GET|POST']],
'addBargain' => ['api_broker/OfficeOrderLog/addBargain', ['method' => 'post']], //新增成交报告佣金(分佣提成)
'houseEdit' => ['api_broker/OfficeRoom/edit', ['method' => 'POST']],//楼盘字典新增和编辑
'houseAdd' => ['api_broker/OfficeRoom/edit', ['method' => 'POST']],//楼盘字典新增和编辑
'delHouseFile' => ['api_broker/OfficeRoom/delHouseFile', ['method' => 'POST']],//删除房源图片
'delBuildingFile' => ['api_broker/OfficeBuilding/delHouseFile', ['method' => 'POST']],//删除楼盘图片
'getBuildingSearch' => ['api_broker/OfficeRoom/getBuildingSearch', ['method' => 'GET']],//搜索楼盘
......
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