Commit 84d1e864 authored by zhuwei's avatar zhuwei

bug

parent 15fa5a2c
...@@ -211,9 +211,8 @@ class HomePageLog extends Basic ...@@ -211,9 +211,8 @@ class HomePageLog extends Basic
} }
} }
$join = [];
$order = "f.id desc"; $order = "f.id desc";
$result = $this->gHouseFollowUpModel->getSearch($pageNo, $pageSize, $order, $field, $join, $where_, ""); $result = $this->gHouseFollowUpModel->getSearch($pageNo, $pageSize, $order, $field, $where_, "");
foreach ($result as $key => $value) { foreach ($result as $key => $value) {
$agent_params = []; $agent_params = [];
$agent_params["a.id"] = $value['agent_id']; $agent_params["a.id"] = $value['agent_id'];
......
...@@ -113,12 +113,11 @@ class GHousesFollowUp extends BaseModel ...@@ -113,12 +113,11 @@ class GHousesFollowUp extends BaseModel
* @throws \think\db\exception\ModelNotFoundException * @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException * @throws \think\exception\DbException
*/ */
public function getSearch($p = 1, $pageSize = 15, $order_ = 'id desc', $field, $join, $where, $group) public function getSearch($p = 1, $pageSize = 15, $order_ = 'id desc', $field, $where, $group)
{ {
$data = $this->db_ $data = $this->db_
->field($field) ->field($field)
->alias('f') ->alias('f')
->join($join)
->join('a_agents a', 'f.agent_id = a.id', 'left') ->join('a_agents a', 'f.agent_id = a.id', 'left')
->where($where) ->where($where)
->group($group) ->group($group)
......
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