From 7c6065262461dd196ef5fdcd8132d97edf542b9d Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 22 Jun 2024 11:33:36 +0800 Subject: [PATCH] =?UTF-8?q?feat(WorkbenchLogic):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=B4=A2=E5=8A=A1=E7=B1=BB=E5=9E=8B=E5=92=8C=E8=B4=A2=E5=8A=A1?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/store/logic/WorkbenchLogic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/store/logic/WorkbenchLogic.php b/app/store/logic/WorkbenchLogic.php index 6e680460..dcef478a 100644 --- a/app/store/logic/WorkbenchLogic.php +++ b/app/store/logic/WorkbenchLogic.php @@ -54,11 +54,11 @@ class WorkbenchLogic extends BaseLogic $dateDiff = (new \DateTime($endTime))->diff(new \DateTime($startTime)); $where = ['paid' => 1]; $cashFinanceWhere = []; - $storeFinanceWhere = []; + $storeFinanceWhere = ['financial_type'=>11,'financial_pm'=>0]; if ($params['store_id'] != 0) { $where['store_id'] = $params['store_id']; $cashFinanceWhere = ['store_id' => $params['store_id']]; - $storeFinanceWhere = ['store_id' => $params['store_id'],'financial_type'=>11,'financial_pm'=>0]; + $storeFinanceWhere['store_id'] = $params['store_id']; } $orderLogic = new StoreOrderLogic(); //订单总金额