From 38e832455c77ed4afc0f6118c63ddc98a2eaa03f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E6=98=8A=E5=A4=A9?= <442384644@qq.com> Date: Mon, 6 Mar 2023 18:45:54 +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 --- crmeb/app/services/statistic/ProductStatisticServices.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crmeb/app/services/statistic/ProductStatisticServices.php b/crmeb/app/services/statistic/ProductStatisticServices.php index 1b4b5ee41..f2eae7189 100644 --- a/crmeb/app/services/statistic/ProductStatisticServices.php +++ b/crmeb/app/services/statistic/ProductStatisticServices.php @@ -178,7 +178,7 @@ class ProductStatisticServices extends BaseServices $cost = array_column($storeOrder->getProductTrend($time, $timeType, 'pay_time', 'sum(cost)'), 'num', 'days'); $orderIds = array_column($refundList, 'store_order_id'); $ids = implode(',', $orderIds); - $totalNumList = $orderRefund->column(['refund_id' => $ids], 'refund_num', 'id'); + $totalNumList = $orderRefund->getColumn(['refund_id' => $ids], 'refund_num', 'id'); $refundNum = array_column($refundList, 'store_order_id', 'days'); foreach ($refundNum as &$i) { $oIds = explode(',', $i);