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 @@
序号 | +下游名称 | +会长账号 | +下游类型 | +市场员 | +下游性质 | +产品 | +产品类型 | +结算时间 | +推广流水 | +分成比例 | +补点 | +奖励 | +罚款 | +结算金额 | +开户名 | +银行卡号 | +开户支行 | +帐户类型 | +备注 | +
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{$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} | ++ | + | + |