From fb68a757b456045a7d5542acd42f6dfb35377e68 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Mon, 27 Jun 2022 17:01:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9F=BA=E7=A1=80=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E5=AF=BC=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../PromoteCompanyController.class.php | 18 +++++++++++++++++- .../Admin/View/PromoteCompany/lists.html | 3 +++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/Application/Admin/Controller/PromoteCompanyController.class.php b/Application/Admin/Controller/PromoteCompanyController.class.php index 693de28ff..46177663a 100644 --- a/Application/Admin/Controller/PromoteCompanyController.class.php +++ b/Application/Admin/Controller/PromoteCompanyController.class.php @@ -36,7 +36,7 @@ class PromoteCompanyController extends ThinkController $model = M($this->modelName, 'tab_'); $is_export= false; - if (isset($_REQUEST['export']) && $_REQUEST['export']==1){ + if (isset($_REQUEST['export']) && ($_REQUEST['export']==1 || $_REQUEST['export']==2)){ $is_export = true; $this->getAggregatePackage(); } @@ -139,6 +139,22 @@ class PromoteCompanyController extends ThinkController ->order("last_up_time desc"); if($is_export){ $companyres = $companyres->select(); + if ($_REQUEST['export']==2){ + foreach ($companyres as $key => &$v) { + $v['bank_card'] = "`".$v['bank_card']; + $v['ali_account'] = "`".$v['ali_account']; + } + //基础信息导出 + data2csv($companyres,'下游推广公司基础信息导出',array( + "company_name"=>"推广公司名称", + "bank_name"=>"银行名称", + "bank_address"=>"账户名", + "bank_card"=>"银行卡号", + "ali_user"=>"支付宝真实名称", + "ali_account"=>"支付宝登陆账号", + "wx_account"=>"微信账号" + )); + } }else{ $companyres = $companyres->page($page,$row)->select(); } diff --git a/Application/Admin/View/PromoteCompany/lists.html b/Application/Admin/View/PromoteCompany/lists.html index 0bc5ba4f3..25e456c4a 100644 --- a/Application/Admin/View/PromoteCompany/lists.html +++ b/Application/Admin/View/PromoteCompany/lists.html @@ -162,6 +162,9 @@
导出excel
+
+ 银行信息导出 +