- 去掉OrderStatusDelivered状态
This commit is contained in:
@@ -399,7 +399,7 @@ func GetStoresSkusSaleInfo(ctx *jxcontext.Context, storeIDs []int, skuIDs []int,
|
||||
sql := `
|
||||
SELECT IF(t2.jx_store_id <> 0, jx_store_id, store_id) store_id, t1.sku_id, COUNT(*) times, SUM(count) count
|
||||
FROM order_sku t1
|
||||
JOIN goods_order t2 ON t1.vendor_order_id = t2.vendor_order_id AND t1.vendor_id = t2.vendor_id AND t2.status IN (?, ?)
|
||||
JOIN goods_order t2 ON t1.vendor_order_id = t2.vendor_order_id AND t1.vendor_id = t2.vendor_id AND t2.status = ?
|
||||
WHERE t1.order_created_at >= ? AND t1.order_created_at <= ?
|
||||
AND IF(t2.jx_store_id <> 0, jx_store_id, store_id) IN (` + dao.GenQuestionMarks(len(storeIDs)) + `)
|
||||
`
|
||||
@@ -407,7 +407,6 @@ func GetStoresSkusSaleInfo(ctx *jxcontext.Context, storeIDs []int, skuIDs []int,
|
||||
toTime = time.Now()
|
||||
}
|
||||
sqlParams := []interface{}{
|
||||
model.OrderStatusDelivered,
|
||||
model.OrderStatusFinished,
|
||||
fromTime,
|
||||
toTime,
|
||||
|
||||
Reference in New Issue
Block a user