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 `