Commit afc4fbfe authored by hujun's avatar hujun

获取经纪人部门门店

parent 0c91faa2
...@@ -288,10 +288,18 @@ class Broker extends Basic ...@@ -288,10 +288,18 @@ class Broker extends Basic
* @throws \think\exception\DbException * @throws \think\exception\DbException
*/ */
public function getAgentDistrictStore() { public function getAgentDistrictStore() {
$m_store = new AAgents(); // $m_store = new AAgents();
$where['a.id'] = $this->params['id']; // $where['a.id'] = $this->params['id'];
$field = 'b.store_name, c.district_name'; // $field = 'b.store_name, c.district_name';
$data = $m_store->getStoreDistrict($field, $where); // $data = $m_store->getStoreDistrict($field, $where);
if (empty($this->params['id'])) {
return $this->response(101, '参数错误');
}
$s_redis = new RedisCacheService();
$agent_data = $s_redis->getRedisCache(2, $this->params['id']);
$data['store_name'] = $agent_data['store_name'];
$data['district_name'] = $agent_data['district_name'];
return $this->response(200, '', $data); return $this->response(200, '', $data);
} }
......
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