From a84a69fd56cc0be7196608b2a3e539657248804c Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 2 Mar 2021 15:31:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=83=AD=E6=9B=B4=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Admin/Controller/CompanyStatementController.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index 588a5cb68..8d134d2ad 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -573,6 +573,10 @@ class CompanyStatementController extends ThinkController $map['company_belong'] = 9; + if(!$_REQUEST["year"]) { + $_REQUEST["year"] = date("Y"); + } + if ($_REQUEST["year"]) { $start = strtotime($_REQUEST["year"]."-01-01"); $end = strtotime(date("Y-m-t",strtotime($_REQUEST["year"]."-12"))) + 86399;