Commit 835c3875 authored by hujun's avatar hujun

去除

parent eca2126e
......@@ -509,7 +509,6 @@ class Finance extends Basic
$data['msg'] = 'Id is null.';
} else {
$fields = 'a.id,a.role,a.agent_id,a.scale,a.scale_fee,a.father_id';
$fields .= ',e.id as partial_commission_id';
$where[0] = [ 'EXP', "a.id = {$this->params['id']} or a.father_id = {$this->params['id']}" ];
$where['a.status'] = [ '<>', 30 ];
$data['data'] = $this->m_bargain->getBargainPartial(1, 100, 'a.id desc', $fields, $where, $this->params['id']);
......
......@@ -1052,8 +1052,6 @@ class OBargainModel extends Model
$data = $this->field($fields)
->alias('a')
->join('a_agents b', 'a.agent_id = b.id', 'left')
->join('o_partial_commission e', 'e.bargain_id = a.id', 'left')
->where($where)
->order($order_)
->limit($pageSize)
......
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