From 68b896f99073ef7877a0a2a9b1cfc3423b619062 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 16 May 2024 17:25:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/order/RetailOrderController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/api/controller/order/RetailOrderController.php b/app/api/controller/order/RetailOrderController.php index 6726353..b2522da 100644 --- a/app/api/controller/order/RetailOrderController.php +++ b/app/api/controller/order/RetailOrderController.php @@ -69,11 +69,12 @@ class RetailOrderController extends BaseApiController */ public function merchant_order_count() { + $date = $this->request->get('date', date('Y-m-d')); $where[] = ['merchant', '=',$this->userInfo['merchant']['mer_id']]; $where[] = ['paid', '=',1]; $where[] = ['pay_type', '<>',9]; $where[] = ['is_opurchase', '=',0]; - $res = Cashierclass::where($where)->count(); + $res = Cashierclass::where($where)->whereDay('create_time', $date)->count(); return $this->success('ok', ['order_count' => $res]); } public function order_count()