diff --git a/Application/Admin/Controller/PromoteCompanyController.class.php b/Application/Admin/Controller/PromoteCompanyController.class.php index 1cc6d854c..29f49cf76 100644 --- a/Application/Admin/Controller/PromoteCompanyController.class.php +++ b/Application/Admin/Controller/PromoteCompanyController.class.php @@ -59,6 +59,8 @@ class PromoteCompanyController extends ThinkController $companyids = implode(',', array_column($companyres, 'id')); //获取所属会长及其游戏分成 $promotemap['company_id']=["in",$companyids]; + $promotemap['level'] = 1; + $promoteres = M("Promote","tab_") ->field("id,company_id,account,settlement_type") ->where($promotemap) @@ -177,20 +179,29 @@ class PromoteCompanyController extends ThinkController if($v['platform_name'] == '' || $v['platform_name'] == "0"){ $v['platform_name'] = "--"; } - $v["is_sign_contact"] = ($v["is_sign_contact"]=="1" ? "是" :'否'); - + $v["is_sign_contact"] = ($v["is_sign_contact"]=="1" ? "是" :'否'); + $v["company_type"] = ($v["company_type"]=="1" ? "公司" :'个人'); + $v["company_belong"] = ($v["company_belong"]=="0" ? "内团" : ($v["company_belong"]=="1" ? "外团" : ($v["company_belong"]=="2" ? "外团分发" : '无'))); } // dd($companyres); + + + //公司及会长数量统计 + $companycount = $model->field("id")->where($map)->select(); + $count = count($companycount); + $companyallids = implode(',', array_column($companycount, 'id')); + $promotemap['company_id']=["in",$companyallids]; + $promotecount = M("Promote","tab_")->where($promotemap)->count(); + + $this->assign('listData', $companyres); + $this->assign('count', $count); + $this->assign('promotecount', $promotecount); if($is_export){ - $this->assign('listData', $companyres); + //导出 $this->display("export"); die(); } - /* 查询记录总数 */ - $count = $model - ->where($map) - ->count(); //分页 $parameter['p'] = $page; $parameter['row'] = $row; @@ -198,9 +209,7 @@ class PromoteCompanyController extends ThinkController if ($page) { $this->assign('_page', $page); } - - $this->assign('listData', $companyres); - $this->assign('count', $count); + //分配其他页面需要参数 $this->assign('promoteList', getPromoteByLevel(1)); $this->assign('commonset', M('Kuaijieicon')->where(['url' => 'Partner/lists'])->find()); $this->meta_title = '推广公司'; diff --git a/Application/Admin/View/PromoteCompany/export.html b/Application/Admin/View/PromoteCompany/export.html index d358bf1af..7232a461c 100644 --- a/Application/Admin/View/PromoteCompany/export.html +++ b/Application/Admin/View/PromoteCompany/export.html @@ -29,48 +29,67 @@ - - - - - - - - - + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -84,44 +103,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + @@ -135,16 +124,37 @@ - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + +
合作方名称对应平台合同期限开票税点开户行银行账号是否签署合同备注
合作方名称对应平台公司性质内外团归属合同期限开票税点开户行银行账号是否签署合同备注会长账号结算周期产品类型游戏名称合作方分成比例
会长账号结算周期产品类型游戏名称合作方分成比例
aOh! 暂时还没有内容!
{$data.company_name}{$data.platform_name}{$data.contact_begin} - {$data.contact_end}{$data.fax_ratio}%{$data.bank_name} {$data.bank_card}{$data.is_sign_contact}{$data.content}
{$promote['account']} {$promote['settlement_type']}
aOh! 暂时还没有内容!
{$data.company_name}{$data.platform_name}{$data.company_type}{$data.company_belong}{$data.contact_begin} - {$data.contact_end}{$data.fax_ratio}%{$data.bank_name} {$data.bank_card}{$data.is_sign_contact}{$data.content}
 {$promote['account']} {$promote['settlement_type']}
{$game['game_type_name']}{$game['relation_game_name']}
{$ratio['name']}{$ratio['ratio']}
{$ratio['name']}{$ratio['ratio']}
{$game['game_type_name']} {$game['relation_game_name']} {$ratio['ratio']}
{$game['game_type_name']}{$game['relation_game_name']}
{$ratio['name']}{$ratio['ratio']}
{$ratio['name']}{$ratio['ratio']}
{$promote['account']} {$promote['settlement_type']}{$game['game_type_name']}{$game['relation_game_name']}
{$ratio['name']}{$ratio['ratio']}
{$ratio['name']}{$ratio['ratio']}
 {$promote['account']} {$promote['settlement_type']}{$game['game_type_name']} {$game['relation_game_name']} {$ratio['ratio']}
{$game['game_type_name']}{$game['relation_game_name']}
{$ratio['name']}{$ratio['ratio']}
{$ratio['name']}{$ratio['ratio']}
汇总: + 累计推广公司数量:{$count}  会长数量:{$promotecount} +