商城topskus重复问题
This commit is contained in:
@@ -995,7 +995,7 @@ func GetTopSkusByStoreIDs(db *DaoDB, storeIDs []int) (storeSkuNameExt []*StoreSk
|
||||
GROUP BY 2,3,4)t1
|
||||
JOIN sku t2 ON t2.id = t1.id
|
||||
JOIN sku_name t3 ON t3.id = t2.name_id
|
||||
UNION ALL
|
||||
UNION
|
||||
SELECT 2 s, 0 count, a.sku_id, g.*, a.store_id, e.name store_name
|
||||
FROM store_sku_bind a
|
||||
LEFT JOIN act_store_sku b ON a.store_id = b.store_id AND b.sku_id = a.sku_id
|
||||
|
||||
Reference in New Issue
Block a user