Commit 344a67fc authored by hujun's avatar hujun

1

parent bd52c337
...@@ -40,8 +40,8 @@ class AppointmentShop extends Basic ...@@ -40,8 +40,8 @@ class AppointmentShop extends Basic
$code = 200; $code = 200;
$msg = ""; $msg = "";
$list = []; $list = [];
// $where['a.appoint_agent_id'] = 1; $where['a.appoint_agent_id'] = 1;
$where['a.appoint_agent_id'] = $this->agentId; // $where['a.appoint_agent_id'] = $this->agentId;
$where['a.is_cancel'] = 0; $where['a.is_cancel'] = 0;
$page_no = empty($this->params['page_no']) ? 1 : $this->params['page_no']; $page_no = empty($this->params['page_no']) ? 1 : $this->params['page_no'];
$page_size = empty($this->params['page_size']) ? 15 : $this->params['page_size']; $page_size = empty($this->params['page_size']) ? 15 : $this->params['page_size'];
...@@ -50,6 +50,7 @@ class AppointmentShop extends Basic ...@@ -50,6 +50,7 @@ class AppointmentShop extends Basic
$field .= 'b.user_name,b.id as use_id,a.applies_id'; $field .= 'b.user_name,b.id as use_id,a.applies_id';
try { try {
$list = $this->m_watch->getAppointWatchOur($page_no, $page_size, 'a.id desc', $field, $where); $list = $this->m_watch->getAppointWatchOur($page_no, $page_size, 'a.id desc', $field, $where);
$m_house = new GHouses(); $m_house = new GHouses();
$m_agent = new AAgents(); $m_agent = new AAgents();
foreach ($list as $k => $v) { foreach ($list as $k => $v) {
...@@ -60,9 +61,10 @@ class AppointmentShop extends Basic ...@@ -60,9 +61,10 @@ class AppointmentShop extends Basic
} }
$list[$k]['house_title'] = $m_house->getHouseValue('internal_title', ['id' => $v['house_id']]); $list[$k]['house_title'] = $m_house->getHouseValue('internal_title', ['id' => $v['house_id']]);
$follow_up = $this->m_follow->getAllList('admin_id,content,create_time', ['sublet_id' => $v['id']]); $follow_up = $this->m_follow->getAllList('admin_id,content,create_time', ['sublet_id' => $v['id']]);
foreach ($follow_up as $k => $v) {
$follow_up[$k]['name'] = $m_agent->getAgentsById($v['admin_id'], 'name'); foreach ($follow_up as $k2 => $v2) {
unset($follow_up[$k]['admin_id']); $follow_up[$k2]['name'] = $m_agent->getAgentsById($v2['admin_id'], 'name');
unset($follow_up[$k2]['admin_id']);
} }
if (empty($follow_up)) { if (empty($follow_up)) {
......
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