Commit 275877b2 authored by hujun's avatar hujun

时间

parent f055716a
...@@ -1900,7 +1900,15 @@ class Finance extends Basic ...@@ -1900,7 +1900,15 @@ class Finance extends Basic
$code = 200; $code = 200;
$msg = ''; $msg = '';
$m_real_income = new ORealIncome(); $m_real_income = new ORealIncome();
$data = $m_real_income->getBargainTaxes($this->params['bargain_id'], 'id,income_time,money'); $m_bargain = new OBargainModel();
$father_id = $m_bargain->getBargainDetail('father_id', ['id'=>$this->params['bargain_id']]);
if (empty($father_id)) {
$bargain_id = $this->params['bargain_id'];
} else {
$bargain_id = $father_id[0]['father_id'];
}
$data = $m_real_income->getBargainTaxes($bargain_id, 'id,income_time,money');
} catch (\Exception $e) { } catch (\Exception $e) {
$code = 101; $code = 101;
$msg = $e->getMessage(); $msg = $e->getMessage();
......
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