Commit aa683e01 authored by hujun's avatar hujun

经纪人职称列表

parent b66ab852
...@@ -15,6 +15,7 @@ use app\api_broker\service\PushMessageService; ...@@ -15,6 +15,7 @@ use app\api_broker\service\PushMessageService;
use app\index\extend\Basic; use app\index\extend\Basic;
use app\model\AAgents; use app\model\AAgents;
use app\model\ABindingDevice; use app\model\ABindingDevice;
use app\model\AStore;
use app\model\Evaluate; use app\model\Evaluate;
use app\model\GHousesToAgents; use app\model\GHousesToAgents;
use think\Session; use think\Session;
...@@ -748,4 +749,49 @@ class Broker extends Basic ...@@ -748,4 +749,49 @@ class Broker extends Basic
return $this->response(101, '内部错误:'.$e->getMessage()); return $this->response(101, '内部错误:'.$e->getMessage());
} }
} }
/**
* 经纪人职称列表
*
* @return \think\Response
*/
public function agentPositionList()
{
$msg = "";
$code = 200;
$data = [];
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
$where['status'] = 0;
if (!empty($this->params['position'])) {
$where['position'] = $this->params['position'];
}
if (!empty($this->params['name'])) {
$where['name'] = $this->params['name'];
}
if (!empty($this->params['phone'])) {
$where['phone'] = $this->params['phone'];
}
try {
$m_agent = new AAgents();
$m_store = new AStore();
$list = $m_agent->getList($pageNo, $pageSize, 'id desc', 'id,phone,name,position,store_id', $where);
foreach ($list as $k=>$v) {
$list[$k]['store_name'] = $m_store->getStoreKeyById('store_name', ['id'=>$v['store_id']]);
}
$data['list'] = $list;
$data['total'] = $m_agent->getTotal($where);
} catch (\Exception $e) {
$code = 101;
$msg = '内部错误:'.$e->getMessage();
}
return $this->response($code, $msg, $data);
}
} }
\ No newline at end of file
...@@ -111,6 +111,7 @@ Route::group('index', [ ...@@ -111,6 +111,7 @@ Route::group('index', [
'getCurrentCity' => ['index/broker/getCurrentCity', ['method' => 'GET']], //获取所属城市 'getCurrentCity' => ['index/broker/getCurrentCity', ['method' => 'GET']], //获取所属城市
'settingCity' => ['index/broker/settingCity', ['method' => 'POST']], //设置所属城市 'settingCity' => ['index/broker/settingCity', ['method' => 'POST']], //设置所属城市
'getAgentGroupSite' => ['index/broker/getAgentGroupSite', ['method' => 'GET']], //获得经纪人站点 'getAgentGroupSite' => ['index/broker/getAgentGroupSite', ['method' => 'GET']], //获得经纪人站点
'agentPositionList' => ['index/broker/agentPositionList', ['method' => 'GET']], //经纪人职称列表
'batchChangDish' => ['index/houses/batchChangDish', ['method' => 'post']],//批量修改盘方 'batchChangDish' => ['index/houses/batchChangDish', ['method' => 'post']],//批量修改盘方
'transformLandlord' => ['index/houses/transformLandlord', ['method' => 'post']],//转换房东手机号 'transformLandlord' => ['index/houses/transformLandlord', ['method' => 'post']],//转换房东手机号
'lockHouse' => ['index/houses/lockHouse', ['method' => 'post']],//锁盘 'lockHouse' => ['index/houses/lockHouse', ['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