From 147f5fc32ef877502807f652e5809f72b96f7277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=B5=B5=E9=92=8A?= Date: Sat, 27 Sep 2025 16:11:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=EF=BC=9A=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/adminapi/controller/Index.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/application/adminapi/controller/Index.php b/application/adminapi/controller/Index.php index 5b7655d..196d333 100644 --- a/application/adminapi/controller/Index.php +++ b/application/adminapi/controller/Index.php @@ -54,6 +54,15 @@ class Index extends adminApi //总待付款笔数 $return_data['all_wait_pay_num'] = db::name('vs_user_recharge')->where('pay_status',1)->count(); + //周实时收入金额 + $return_data['week_money'] = db::name('vs_user_recharge')->where('pay_status',2)->whereTime('pay_time', 'week')->sum('money'); + //上周收入金额 + $return_data['last_week_money'] = db::name('vs_user_recharge')->where('pay_status',2)->whereTime('pay_time', 'last week')->sum('money'); + //月收入金额 + $return_data['month_money'] = db::name('vs_user_recharge')->where('pay_status',2)->whereTime('pay_time', 'month')->sum('money'); + //上月收入金额 + $return_data['last_month_money'] = db::name('vs_user_recharge')->where('pay_status',2)->whereTime('pay_time', 'last month')->sum('money'); + //待办事项 //房间审核数 $return_data['room_audit_num'] = db::name('vs_room')->where('apply_status',1)->count();