From 6401ce888408e91b7dc2ea1305c37e9c85550111 Mon Sep 17 00:00:00 2001 From: youda Date: Mon, 28 Apr 2025 15:17:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/controller/Statistics.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/controller/Statistics.php b/app/admin/controller/Statistics.php index f4d9a72..9402419 100755 --- a/app/admin/controller/Statistics.php +++ b/app/admin/controller/Statistics.php @@ -1317,7 +1317,7 @@ class Statistics extends Base // 查询3:获取兑换成本 $reMoneyQuery = Db::name('order_list') ->where('goods_id', 'in', $goodsIds) - ->where('LENGTH(recovery_num)', '>', 0) + ->where('status', '=', 1) ->where('user_id', 'not in', $testUserIds); if ($hasTimeRange) { @@ -1330,7 +1330,7 @@ class Statistics extends Base // 查询4:获取发货成本 $fhMoneyQuery = Db::name('order_list') ->where('goods_id', 'in', $goodsIds) - ->where('LENGTH(send_num)', '>', 0) + ->where('status', '=', 2) ->where('user_id', 'not in', $testUserIds); if ($hasTimeRange) {