Commit 004084f7 authored by hujun's avatar hujun

dish

parent c9d8d9f2
...@@ -141,6 +141,7 @@ class OfficeCollectHouse extends Basic ...@@ -141,6 +141,7 @@ class OfficeCollectHouse extends Basic
$isLook = $look_shop_service->isLooked($params["agents_id"], $val["id"]); $isLook = $look_shop_service->isLooked($params["agents_id"], $val["id"]);
$res[$key]["is_look"] = $isLook; $res[$key]["is_look"] = $isLook;
$res[$key]["price"] = $val["price"] * 0.01; $res[$key]["price"] = $val["price"] * 0.01;
$res[$key]["price_total"] = $val["price_total"] * 0.01;
//锁盘后,盘方、独家方、有权限的可以查看 //锁盘后,盘方、独家方、有权限的可以查看
$res[$key]["look_lock"] = 0; $res[$key]["look_lock"] = 0;
...@@ -150,17 +151,20 @@ class OfficeCollectHouse extends Basic ...@@ -150,17 +151,20 @@ class OfficeCollectHouse extends Basic
} }
} }
$agent_where['a.agent_id'] = $this->agentId; // $agent_where['a.agent_id'] = $this->agentId;
$agent_where['a.type'] = ['in', '2,3']; $agent_where['a.type'] = ['in', '2,3'];
$agent_where['a.house_id'] = $val['id']; $agent_where['a.house_id'] = $val['id'];
$agent_data = $m_agent->getAgentsByRoomId('a.id,a.type,b.name,b.phone', $agent_where); $agent_data = $m_agent->getAgentsByRoomId('a.id,a.type,a.agent_id,b.name,b.phone', $agent_where);
$res[$key]["name"] = ''; $res[$key]["name"] = '';
if ($agent_data) { if ($agent_data) {
$res[$key]["look_lock"] = 1;
foreach ($agent_data as $vvv) { foreach ($agent_data as $vvv) {
if ($vvv['type'] == 2) { if ($vvv['type'] == 2) {
$res[$key]["name"] = $vvv['name'].'-'.$vvv['phone']; $res[$key]["name"] = $vvv['name'].'-'.$vvv['phone'];
} }
if ($vvv['agent_id'] == $this->agentId) {
$res[$key]["look_lock"] = 1;
}
} }
} }
......
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