From 337f3f4bf89079954cb3a99cdc1d80a7cef0232c Mon Sep 17 00:00:00 2001 From: liu <1873441552@qq.com> Date: Wed, 13 Mar 2024 15:55:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E4=BC=A0=E5=A6=82=E6=97=B6?= =?UTF-8?q?=E9=97=B4=E7=9A=84=E6=97=B6=E9=97=B4=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/api/server/StoreOrder.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controller/api/server/StoreOrder.php b/app/controller/api/server/StoreOrder.php index f423f125..63eb2ec3 100644 --- a/app/controller/api/server/StoreOrder.php +++ b/app/controller/api/server/StoreOrder.php @@ -68,10 +68,10 @@ class StoreOrder extends BaseController [$page, $limit] = $this->getPage(); $where['section_startTime'] = $this->request->param('section_startTime'); $where['section_endTime'] = $this->request->param('section_endTime'); -// if(empty($where['section_startTime']) && empty($where['section_endTime'])){ -// $where['section_startTime'] = date('Y-m-d',time()).' 00:00:00'; -// $where['section_endTime'] = date('Y-m-d',time()).' 23:59:59'; -// } + if(!empty($where['section_endTime'])&& $where['section_endTime']){ + $timestamp = strtotime($where['section_endTime'] . ' +1 day'); + $where['section_endTime'] = date('Y-m-d', $timestamp); + } return app('json')->success($repository->revenueExpenditure($where, $page, $limit,$merId)); }