推荐商品

This commit is contained in:
苏尹岚
2019-12-03 10:25:12 +08:00
parent 8c196ab87f
commit f4c400d69e

View File

@@ -665,7 +665,7 @@ func GetStoreSkusByNameIDs(db *DaoDB, storeIDs []int, nameID int) (skuList []*St
func GetTopSkusByStoreIDs(db *DaoDB, storeIDs []int) (skuAndName []*model.SkuAndName, err error) {
sql := `
SELECT *
SELECT t2.*,t3.name, t3.unit, t3.prefix, t3.is_spu
FROM(
SELECT SUM(b.count) count,b.sku_id
FROM goods_order a