From 34511c92d56cc5583b207043d42ce016ab7b95a0 Mon Sep 17 00:00:00 2001 From: lq Date: Fri, 25 Oct 2024 15:00:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/controllers/base/StatementAccountController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/controllers/base/StatementAccountController.php b/admin/controllers/base/StatementAccountController.php index f448759..14eec9f 100644 --- a/admin/controllers/base/StatementAccountController.php +++ b/admin/controllers/base/StatementAccountController.php @@ -752,7 +752,7 @@ class StatementAccountController extends BaseAdminController ['<>', 'refund_status', '3'], ['<>', 'status', '4'] ])->andWhere($data ?? '')->sum('decoct_price'); - // 计算所有挂号的总金额 + // 计算所有分账的总金额 $register_price = Ledger::find()->alias('re')->where(['user_id' => $admin->store_id, 'status' => 1, 'user_type' => 1, 'order_type' => 2])->andWhere($register_data ?? '')->sum('money'); // 计算所有药的销售金额 @@ -935,6 +935,7 @@ class StatementAccountController extends BaseAdminController public function actionNewStoreStatistic() { + // TODO 为什么写两个统计 $get = \Yii::$app->request->get(); $admin = \Yii::$app->user->identity;