From a3633ea52e99482733afe54971f8eeebabd28e78 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 8 Jun 2020 18:38:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=B8=8B=E6=B8=B8=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CompanyStatementPoolController.class.php | 27 +++ .../View/CompanyStatementPool/viewCpPool.html | 4 +- .../View/CompanyStatementPool/viewPuPool.html | 183 ++++++++++++++++++ 3 files changed, 213 insertions(+), 1 deletion(-) create mode 100644 Application/Admin/View/CompanyStatementPool/viewPuPool.html diff --git a/Application/Admin/Controller/CompanyStatementPoolController.class.php b/Application/Admin/Controller/CompanyStatementPoolController.class.php index a5a11d502..591c3d702 100644 --- a/Application/Admin/Controller/CompanyStatementPoolController.class.php +++ b/Application/Admin/Controller/CompanyStatementPoolController.class.php @@ -183,8 +183,35 @@ class CompanyStatementPoolController extends ThinkController }elseif($infolist[0]['company_type'] == 1){ //下游公司 $this->viewPcPool($infolist,$is_export); + }else{ + $this->viewPuPool($infolist,$is_export); + } + + } + //个人汇总结算查看 + protected function viewPuPool(&$infolist,$is_export){ + $line = 1; + $count = []; + //获取对接人 + $p_id = array_column($infolist,'company_id'); + $map['pc.id'] = ['in',$p_id]; + $pl = M("promote_company","tab_") + ->alias('pc') + ->field("pc.id,p.account,p.company_relation,s.nickname,pc.bank_address,pc.bank_name,pc.bank_card,pc.company_belong") + ->join("left join (select company_id,account,company_relation from tab_promote where level = 1 group by company_id ) p on p.company_id = pc.id") + ->join("left join sys_member s on s.uid = pc.uid") + ->where($map) + ->select(); + $Partner = []; + foreach($pl as $k=>$v){ + $Partner[$v['id']] = $v; } + unset($pl); + + + // } + //下游汇总结算查看 protected function viewPcPool(&$infolist,$is_export){ $line = 1; $count = []; diff --git a/Application/Admin/View/CompanyStatementPool/viewCpPool.html b/Application/Admin/View/CompanyStatementPool/viewCpPool.html index cf3d0213d..913926d6c 100644 --- a/Application/Admin/View/CompanyStatementPool/viewCpPool.html +++ b/Application/Admin/View/CompanyStatementPool/viewCpPool.html @@ -125,7 +125,8 @@ {$com.company_name} {$com.matche_platform} - {$com.statement_begin_time} ~ {$com.statement_end_time} + + {$com['statement_info'][0]['statement_begin_time']} ~ {$com['statement_info'][0]['statement_end_time']} {$com['statement_info'][0]['game_name']} {$com['statement_info'][0]['pay_amount']} @@ -144,6 +145,7 @@ + {$it['statement_begin_time']} ~ {$it['statement_end_time']} {$it['game_name']} {$it['pay_amount']} {$it['pay_amount']} diff --git a/Application/Admin/View/CompanyStatementPool/viewPuPool.html b/Application/Admin/View/CompanyStatementPool/viewPuPool.html new file mode 100644 index 000000000..21e35d3e7 --- /dev/null +++ b/Application/Admin/View/CompanyStatementPool/viewPuPool.html @@ -0,0 +1,183 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
序号下游名称会长账号下游类型市场员下游性质产品产品类型结算时间推广流水分成比例补点奖励罚款结算金额开户名银行卡号开户支行帐户类型备注
{$key-0+1}{$com.company_name}{$com['statement_info'][0]['game_name']}{$com['statement_info'][0]['pay_amount']}{$com['statement_info'][0]['ratio']}%{$com['statement_info'][0]['increment_ratio']}%{$com['statement_info'][0]['fax_ratio']}%{$com['statement_info'][0]['d_statement_money']}{$com.fine}{$com.reward}{$com.statement_money}{$com.settlement_contact}{$com['statement_info'][0]['statement_begin_time']} ~ {$com['statement_info'][0]['statement_end_time']}{$com.renark}
{$it['game_name']}{$it['pay_amount']}{$it['ratio']}%{$it['increment_ratio']}%{$it['fax_ratio']}%{$it['d_statement_money']}{$it['statement_begin_time']} ~ {$it['statement_end_time']}
合计:{$count.platform_amount}{$count.d_statement_money}{$count.fine}{$count.reward}{$count.statement_money}
+
+
+ + +