Commit 4f40f8a4 authored by zhuwei's avatar zhuwei

商铺详情 添加盘方

parent 82b440a2
...@@ -277,8 +277,11 @@ class GHousesToAgents extends BaseModel ...@@ -277,8 +277,11 @@ class GHousesToAgents extends BaseModel
*/ */
public function getHousesUpdateAgents($houses_id) public function getHousesUpdateAgents($houses_id)
{ {
$select_data = $this->field('b.id,name,a.type,b.phone')->alias('a') $select_data = $this
->field('b.id,name,a.type,b.phone,c.store_name')
->alias('a')
->join('a_agents b', 'a.agents_id = b.id', 'LEFT') ->join('a_agents b', 'a.agents_id = b.id', 'LEFT')
->join("a_store c", "b.store_id = c.id", "left")
->where([ ->where([
'houses_id' => $houses_id, 'houses_id' => $houses_id,
'type' => 2, 'type' => 2,
......
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