This commit is contained in:
wangw 2024-08-08 10:44:13 +08:00
parent 6ee7b54311
commit a6fc82c4cb
1 changed files with 1 additions and 1 deletions

View File

@ -945,7 +945,7 @@
FROM tb_product_sku FROM tb_product_sku
WHERE shop_id = #{shopId} WHERE shop_id = #{shopId}
GROUP BY product_id GROUP BY product_id
ORDER BY SUM(stock_number) DESC LIMIT 3) AS top_products ON tb.id = top_products.product_id ORDER BY SUM(real_sales_number) DESC LIMIT 3) AS top_products ON tb.id = top_products.product_id
where is_show_mall = 1 where is_show_mall = 1
and tb.status = 1 and tb.status = 1
and sku.is_del = 0 and sku.is_del = 0