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(); //订单总金额