Commit 3fd3f224 authored by zhuwei's avatar zhuwei

评价列表加时间轴id

parent 177e4a61
...@@ -71,7 +71,7 @@ class Evaluation extends Basic ...@@ -71,7 +71,7 @@ class Evaluation extends Basic
} }
//搜索条件 end //搜索条件 end
$fields_evaluate = 'user_nick,user_phone,evaluate_grade,evaluate_content,a.create_time,c.name,c.phone'; $fields_evaluate = 'user_nick,user_phone,evaluate_grade,evaluate_content,a.create_time,c.name,c.phone,IF(d.report_id>0, d.report_id, e.report_id) AS report_id';
$data['list'] = $this->evaluateModel->findEvaluationList($pageNo, $pageSize, 'a.id desc', $fields_evaluate, $where); $data['list'] = $this->evaluateModel->findEvaluationList($pageNo, $pageSize, 'a.id desc', $fields_evaluate, $where);
$data['total'] = $this->evaluateModel->findEvaluationListCount($fields_evaluate, $where); $data['total'] = $this->evaluateModel->findEvaluationListCount($fields_evaluate, $where);
......
...@@ -107,6 +107,11 @@ class Evaluate extends Model ...@@ -107,6 +107,11 @@ class Evaluate extends Model
->alias('a') ->alias('a')
->join('u_users b', 'a.user_id = b.id', 'left') ->join('u_users b', 'a.user_id = b.id', 'left')
->join('a_agents c', 'a.agents_id = c.id', 'left') ->join('a_agents c', 'a.agents_id = c.id', 'left')
->join('o_march_in d', 'a.record_id=d.id and a.source=10', 'left')
->join('o_bargain e', 'a.record_id=e.id and a.source =20', 'left')
->where('is_show', 0) ->where('is_show', 0)
->where($params) ->where($params)
->order($order_) ->order($order_)
......
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