Commit 315c0623 authored by hujun's avatar hujun

id or father_id

parent 28bdfaa5
......@@ -488,7 +488,8 @@ class Finance extends Basic
$m_real = new ORealIncome();
$data['data'] = $this->m_bargain->updateBargainById($this->params['id'], $update_data);
$bargain_where[] = ['EXP', 'id='.$this->params['id']. ' or father_id='.$this->params['id']];
$data['data'] = $this->m_bargain->updateBargainByWhere($update_data, $bargain_where);
if ($data['data'] == 1) {
//新增实收佣金 array 5 todo feel_id 大于0 的表示新增 否则修改
......
......@@ -406,8 +406,8 @@ class OfficeBargain extends Basic
$m_real = new OfficeORealIncome();
$data['data'] = $this->m_bargain->updateBargainById($this->params['id'], $update_data);
$bargain_where[] = ['EXP', 'id='.$this->params['id']. ' or father_id='.$this->params['id']];
$data['data'] = $this->m_bargain->updateBargainByWhere($update_data, $bargain_where);
if ($data['data'] == 1) {
//新增实收佣金 array 5 todo feel_id 大于0 的表示新增 否则修改
......
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