From dde260a44dcc48cda9ff36c212abcb4930cc938a Mon Sep 17 00:00:00 2001 From: liqi Date: Thu, 2 Jan 2025 16:18:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/controllers/base/DataController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/controllers/base/DataController.php b/admin/controllers/base/DataController.php index d549b22..dba815e 100644 --- a/admin/controllers/base/DataController.php +++ b/admin/controllers/base/DataController.php @@ -85,14 +85,14 @@ class DataController extends BaseAdminController { // 根据$month列表的月份统计数据 - $query = Reconciliation::find()->where(['between', 'created_at', strtotime(date('Y-01-01'), '-11 month'), strtotime(date('Y-m-d 23:59:59'))])->select([ + $query = Reconciliation::find()->where(['between', 'created_at', strtotime(date('Y-01-01', strtotime('-11 month'))), strtotime(date('Y-m-d 23:59:59'))])->select([ 'drug_type', 'total_price', 'status', 'created_at', ])->all(); - $month = $this->getMonthsList(strtotime(date('Y-01-01'), '-11 month'), strtotime(date('Y-m-d'))); + $month = $this->getMonthsList(strtotime(date('Y-01-01', strtotime('-11 month'))), strtotime(date('Y-m-d'))); $saleMoney = []; $refundMoney = []; $drugSaleMoney = [