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;