商品列表 分组排序 字段映射

This commit is contained in:
2024-11-12 10:47:02 +08:00
parent ed649e8958
commit af10e0b809

View File

@@ -949,7 +949,7 @@
#{item}
</foreach>
GROUP BY product_id
ORDER BY stockNumber DESC LIMIT 3) AS top_products ON tb.id = top_products.product_id
ORDER BY realSalesNumber DESC LIMIT 3) AS top_products ON tb.id = top_products.product_id
where
tb.status = 1
and tb.type_enum != 'group'