From 493197fed2ef99b75aaba51992ea31ad5e717d15 Mon Sep 17 00:00:00 2001 From: chenzhi Date: Wed, 29 Jul 2020 11:24:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=87=8D=E6=96=B0=E7=BB=93?= =?UTF-8?q?=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controller/CompanyStatementSetController.class.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Application/Admin/Controller/CompanyStatementSetController.class.php b/Application/Admin/Controller/CompanyStatementSetController.class.php index f1ccf89a0..2cf88fd48 100644 --- a/Application/Admin/Controller/CompanyStatementSetController.class.php +++ b/Application/Admin/Controller/CompanyStatementSetController.class.php @@ -189,6 +189,9 @@ class CompanyStatementSetController extends Controller { "_string"=>"(validity_start_time > 0 AND validity_end_time = 0 ) OR validity_end_time >= {$endtime}" ]; $tmpp = M("Partner","tab_")->field("id,partner,link_man,link_phone,address,company_tax_no,payee_name,bank_account,opening_bank,channel_rate,invoice_rate,taxation_rate,company_type,ali_user,ali_account,has_advance_charge,has_server_fee,server_fee")->where($cpmap)->select(); + if(empty($tmpp)){ + return true; + } $cp =[]; foreach ($tmpp as $v) { $cp[$v['id']]=$v; @@ -526,6 +529,9 @@ class CompanyStatementSetController extends Controller { $tmpp = M("PromoteCompany","tab_")->field("id,uid,company_name partner,settlement_contact link_man,contact_phone link_phone,bank_name opening_bank,bank_address payee_name,bank_card bank_account,fax_ratio,taxation_rate,company_belong,company_type,ali_user,ali_account,has_server_fee,server_fee,has_ratio,turnover_ratio") ->where($pc_map) ->select(); + if(empty($tmpp)){ + return true; + } $pc =[]; $Promote = M("Promote","tab_"); foreach ($tmpp as $v) {