Commit 06855d41 authored by hujun's avatar hujun

bargain_id

parent f03fc24c
...@@ -3662,7 +3662,7 @@ class Finance extends Basic ...@@ -3662,7 +3662,7 @@ class Finance extends Basic
$pay_data = []; $pay_data = [];
try { try {
$m_pay = new OPayLogModel(); $m_pay = new OPayLogModel();
$pay_fields = 'id,order_id,agent_name,create_time,income_time,house_number,type,real_money,income_time,transfer_name,'; $pay_fields = 'id,order_id,agent_name,create_time,income_time,house_number,type,real_money,income_time,transfer_name,bargain_id';
$pay_fields .= 'transaction_fee,is_dividend,receipt_number,source,pay_type,last_transfer_time,money,industry_type,received_money,type_ext'; $pay_fields .= 'transaction_fee,is_dividend,receipt_number,source,pay_type,last_transfer_time,money,industry_type,received_money,type_ext';
$pay_data = $m_pay->selectReceiptImgList($pay_fields, ['id'=>$this->params['pay_id']]); $pay_data = $m_pay->selectReceiptImgList($pay_fields, ['id'=>$this->params['pay_id']]);
$pay_data = $pay_data[0]; $pay_data = $pay_data[0];
...@@ -3704,8 +3704,8 @@ class Finance extends Basic ...@@ -3704,8 +3704,8 @@ class Finance extends Basic
$m_report = new OReportModel(); $m_report = new OReportModel();
$pay_data['current_agent_name'] = ''; $pay_data['current_agent_name'] = '';
$pay_data['current_agent_name'] = $pay_data['store_name'] = ""; $pay_data['current_agent_name'] = $pay_data['store_name'] = "";
if ($pay_data['type'] == 92 || $pay_data['type'] == 91) { if (($pay_data['type'] == 92 || $pay_data['type'] == 91) && $pay_data['bargain_id'] > 0) {
$where['a.order_id'] = $pay_data['order_id']; $where[] = ['EXP','a.id ='.$pay_data['bargain_id'].' or father_id='. $pay_data['bargain_id']];
$where['a.status'] = ['in','10,11,13']; $where['a.status'] = ['in','10,11,13'];
$where['a.role'] = ['in','3,4,5']; $where['a.role'] = ['in','3,4,5'];
$bargain_data = $this->m_bargain->agentBargainAll('a.role,a.scale,b.name', $where); $bargain_data = $this->m_bargain->agentBargainAll('a.role,a.scale,b.name', $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