推荐商品
This commit is contained in:
@@ -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) {
|
func GetTopSkusByStoreIDs(db *DaoDB, storeIDs []int) (skuAndName []*model.SkuAndName, err error) {
|
||||||
sql := `
|
sql := `
|
||||||
SELECT *
|
SELECT t2.*,t3.name, t3.unit, t3.prefix, t3.is_spu
|
||||||
FROM(
|
FROM(
|
||||||
SELECT SUM(b.count) count,b.sku_id
|
SELECT SUM(b.count) count,b.sku_id
|
||||||
FROM goods_order a
|
FROM goods_order a
|
||||||
|
|||||||
Reference in New Issue
Block a user