diff --git a/Application/Admin/Controller/CompanyStatementController.class.php b/Application/Admin/Controller/CompanyStatementController.class.php index 90fde3595..588a5cb68 100644 --- a/Application/Admin/Controller/CompanyStatementController.class.php +++ b/Application/Admin/Controller/CompanyStatementController.class.php @@ -617,6 +617,12 @@ class CompanyStatementController extends ThinkController $assign_data = []; $sum = []; + if ($_REQUEST["time"]) { + $start = strtotime($_REQUEST["time"]."-01-01"); + $end = strtotime(date("Y-m-t",strtotime($_REQUEST["time"]."-12"))) + 86399; + $map["statement_begin_time"] = ["between",[$start,$end]]; + } + foreach ($company_id as $ckey => $cvalue) { $use_data = [