1
This commit is contained in:
@@ -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 `
|
||||
|
||||
|
||||
Reference in New Issue
Block a user