推荐商品

This commit is contained in:
苏尹岚
2019-12-09 09:51:39 +08:00
parent 202d1997a1
commit 459253c31a

View File

@@ -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 = ?