Commit 88af4fe7 authored by zhuwei's avatar zhuwei

成交报告撤销加分佣ID

parent 0560c436
...@@ -66,9 +66,12 @@ class Finance extends Basic ...@@ -66,9 +66,12 @@ class Finance extends Basic
$pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo']; $pageNo = empty($this->params['pageNo']) ? 1 : $this->params['pageNo'];
$pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize']; $pageSize = empty($this->params['pageSize']) ? 15 : $this->params['pageSize'];
$check_status = $this->params['check_status']; $check_status = $this->params['check_status'];
$fields = 'a.id,a.create_time,a.trade_type,b.user_phone,b.user_name,d.internal_title,d.internal_address, $fields = 'a.id,a.create_time,a.trade_type,b.user_phone,b.user_name,d.internal_title,
a.commission,a.practical_fee,a.scale_fee,a.order_no,a.order_id,content,house_number,a.is_open,a.agent_id, d.internal_address,a.commission,a.practical_fee,a.scale_fee,a.order_no,
a.submit_agent_name,a.price,a.audit_level'; a.order_id,content,house_number,a.is_open,a.agent_id,a.submit_agent_name,
a.price,a.audit_level,';
$fields .= 'e.id as partial_commission_id';
$where['a.father_id'] = 0; $where['a.father_id'] = 0;
$where['a.status'] = 11; $where['a.status'] = 11;
$order = 'a.id desc'; $order = 'a.id desc';
......
...@@ -361,6 +361,8 @@ class OBargainModel extends Model ...@@ -361,6 +361,8 @@ class OBargainModel extends Model
->join('o_report b', 'a.report_id = b.id', 'left') ->join('o_report b', 'a.report_id = b.id', 'left')
->join('o_order c', 'a.order_id = c.id', 'left') ->join('o_order c', 'a.order_id = c.id', 'left')
->join('g_houses d', 'c.house_id = d.id', 'left') ->join('g_houses d', 'c.house_id = d.id', 'left')
->join('o_partial_commission e', 'e.bargain_id = a.id', 'left')
->where($params) ->where($params)
->group('a.id') ->group('a.id')
->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