From e25fe49941c6a9774399a5ce7c525e27f695ae71 Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Sat, 22 Jun 2024 09:47:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BF=AE=E6=94=B9=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=BB=A5=E8=AE=A1=E7=AE=97=E6=80=BB=E9=87=91?= =?UTF-8?q?=E9=A2=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/logic/statistic/TradeStatisticLogic.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/admin/logic/statistic/TradeStatisticLogic.php b/app/admin/logic/statistic/TradeStatisticLogic.php index e999cb1f9..40e1fd4a1 100644 --- a/app/admin/logic/statistic/TradeStatisticLogic.php +++ b/app/admin/logic/statistic/TradeStatisticLogic.php @@ -512,7 +512,7 @@ class TradeStatisticLogic extends BaseLogic })->sum($orderSumField); break; case "group": - $totalMoney = $storeOrder->getCurveData($whereOrder, $where, 'count(pay_price)'); + $totalMoney = $storeOrder->getCurveData($whereOrder, $where, 'sum(pay_price)'); break; default: throw new \Exception('getOrderRefundTotalMoney:selectType参数错误'); @@ -546,7 +546,7 @@ class TradeStatisticLogic extends BaseLogic })->sum($orderSumField); break; case "group": - $totalMoney = $UserSign->getCurveData($whereUserSign, $where, 'count(number)'); + $totalMoney = $UserSign->getCurveData($whereUserSign, $where, 'sum(number)'); break; default: throw new \Exception('getUserSign:selectType参数错误'); @@ -579,7 +579,7 @@ class TradeStatisticLogic extends BaseLogic })->sum('number'); break; case "group": - $totalMoney = $store_finance_flow->getCurveData($where, $time, 'count(number)'); + $totalMoney = $store_finance_flow->getCurveData($where, $time, 'sum(number)'); break; default: throw new \Exception('getFinanceFlow:selectType参数错误'); @@ -615,7 +615,7 @@ class TradeStatisticLogic extends BaseLogic })->sum('pay_price'); break; case "group": - $totalMoney = $storeOrder->getCurveData($where, $time, 'count(pay_price)', $group); + $totalMoney = $storeOrder->getCurveData($where, $time, 'sum(pay_price)', $group); break; default: throw new \Exception('getOrderTotalMoney:selectType参数错误'); @@ -654,7 +654,7 @@ class TradeStatisticLogic extends BaseLogic ->sum($rechargeSumField); break; case "group": - $totalMoney = $userRechage->getCurveData(['paid' => 1], $where, 'count(price)', $group); + $totalMoney = $userRechage->getCurveData(['paid' => 1], $where, 'sum(price)', $group); break; default: $totalMoney = 0.00; @@ -749,7 +749,7 @@ class TradeStatisticLogic extends BaseLogic })->sum($offlineSumField); break; case "group": - $totalMoney = $storeOrder->getCurveData(['pay_type' => 17], $where, 'count(pay_price)', $group); + $totalMoney = $storeOrder->getCurveData(['pay_type' => 17], $where, 'sum(pay_price)', $group); break; default: throw new \Exception('getOfflineTotalMoney:selectType参数错误');