From 55c75e159cc2c844b51c58992636d88fbd82fd9f Mon Sep 17 00:00:00 2001 From: zhengyongxing Date: Tue, 2 Mar 2021 14:41:42 +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 | 6 ++++++ 1 file changed, 6 insertions(+) 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 = [