推荐商品
This commit is contained in:
@@ -669,7 +669,7 @@ func GetTopSkusByStoreIDs(db *DaoDB, storeIDs []int) (skuAndNameExt []*SkuAndNam
|
||||
sql := `
|
||||
SELECT t3.*
|
||||
FROM(
|
||||
SELECT SUM(b.count) count,c.id
|
||||
SELECT SUM(b.count) count,d.id
|
||||
FROM goods_order a
|
||||
JOIN order_sku b ON a.vendor_order_id = b.vendor_order_id
|
||||
JOIN sku c ON b.sku_id = c.id AND c.deleted_at = ?
|
||||
|
||||
Reference in New Issue
Block a user