Commit e03c99bd authored by hujun's avatar hujun

1

parent e87ddc45
......@@ -40,8 +40,8 @@ class AppointmentShop extends Basic
$code = 200;
$msg = "";
$list = [];
$where['a.appoint_agent_id'] = 1;
// $where['a.appoint_agent_id'] = $this->agentId;
// $where['a.appoint_agent_id'] = 1;
$where['a.appoint_agent_id'] = $this->agentId;
$where['a.is_cancel'] = 0;
$page_no = empty($this->params['page_no']) ? 1 : $this->params['page_no'];
$page_size = empty($this->params['page_size']) ? 15 : $this->params['page_size'];
......@@ -53,7 +53,7 @@ class AppointmentShop extends Basic
$m_house = new GHouses();
$m_agent = new AAgents();
foreach ($list as $k => $v) {
if ($v['as is_report'] > 0) {
if ($v['applies_id'] > 0) {
$list[$k]['is_report'] = 1;
} else {
$list[$k]['is_report'] = 0;
......@@ -64,7 +64,13 @@ class AppointmentShop extends Basic
$follow_up[$k]['name'] = $m_agent->getAgentsById($v['admin_id'], 'name');
unset($follow_up[$k]['admin_id']);
}
if (empty($follow_up)) {
$list[$k]['follow_up_list'] = [];
} else {
$list[$k]['follow_up_list'] = $follow_up;
}
unset($list[$k]['applies_id']);
}
} catch (\Exception $e) {
......
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