Commit 678ef6e8 authored by hujun's avatar hujun

分佣方

parent 4883e2cb
...@@ -384,7 +384,7 @@ class Finance extends Basic ...@@ -384,7 +384,7 @@ class Finance extends Basic
$data['msg'] = 'Id is null.'; $data['msg'] = 'Id is null.';
} else { } else {
$m_comm = new OBargainModel(); $m_comm = new OBargainModel();
$fields = 'a.id,a.role,a.agent_id,a.scale,a.scale_fee'; $fields = 'a.id,a.role,a.agent_id,a.scale,a.scale_fee,a.father_id';
$where[0] = [ 'EXP', "a.id = {$this->params['id']} or a.father_id = {$this->params['id']}" ]; $where[0] = [ 'EXP', "a.id = {$this->params['id']} or a.father_id = {$this->params['id']}" ];
$where['a.status'] = [ '<>', 30 ]; $where['a.status'] = [ '<>', 30 ];
$data['data'] = $m_comm->getBargainPartial(1, 100, 'a.id desc', $fields, $where); $data['data'] = $m_comm->getBargainPartial(1, 100, 'a.id desc', $fields, $where);
......
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