From 16efa9dacde8727baa9f211c04202356dbee606a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Mon, 22 Dec 2025 18:31:29 +0800 Subject: [PATCH] 1 --- business/model/dao/dao_order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 4b510588a..d76ba1c7a 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -2031,7 +2031,7 @@ func StaticStoreOrderChange(db *DaoDB, storeId []int, start, end time.Time, rank } if !utils.IsTimeZero(end) { dailyOrders += ` AND g.order_created_at <= ?` - dailyParam = append(dailyParam, start) + dailyParam = append(dailyParam, end) } dailyOrders += ` AND g.status <> 115 GROUP BY g.jx_store_id,DATE(g.order_created_at) )AS daily_orders ` @@ -2055,7 +2055,7 @@ func StaticStoreOrderChange(db *DaoDB, storeId []int, start, end time.Time, rank } if !utils.IsTimeZero(end) { storeTotals += ` AND g.order_created_at <= ?` - dailyParam = append(dailyParam, start) + dailyParam = append(dailyParam, end) } storeTotals += ` AND g.status <> 115 GROUP BY g.jx_store_id ) AS store_counts GROUP BY jx_store_id) AS store_totals `