Commit f13f82fe authored by hujun's avatar hujun

1

parent 275877b2
...@@ -1902,7 +1902,8 @@ class Finance extends Basic ...@@ -1902,7 +1902,8 @@ class Finance extends Basic
$m_real_income = new ORealIncome(); $m_real_income = new ORealIncome();
$m_bargain = new OBargainModel(); $m_bargain = new OBargainModel();
$father_id = $m_bargain->getBargainDetail('father_id', ['id'=>$this->params['bargain_id']]); $father_id = $m_bargain->getBargainDetail('father_id', ['id'=>$this->params['bargain_id']]);
if (empty($father_id)) {
if (empty($father_id[0]['father_id'])) {
$bargain_id = $this->params['bargain_id']; $bargain_id = $this->params['bargain_id'];
} else { } else {
$bargain_id = $father_id[0]['father_id']; $bargain_id = $father_id[0]['father_id'];
......
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