This commit is contained in:
邹宗楠
2025-12-22 18:31:29 +08:00
parent c2937005ca
commit 16efa9dacd

View File

@@ -2031,7 +2031,7 @@ func StaticStoreOrderChange(db *DaoDB, storeId []int, start, end time.Time, rank
} }
if !utils.IsTimeZero(end) { if !utils.IsTimeZero(end) {
dailyOrders += ` AND g.order_created_at <= ?` 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 ` 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) { if !utils.IsTimeZero(end) {
storeTotals += ` AND g.order_created_at <= ?` 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 ` storeTotals += ` AND g.status <> 115 GROUP BY g.jx_store_id ) AS store_counts GROUP BY jx_store_id) AS store_totals `