diff --git a/src/main/resources/mapper/TbProductMapper.xml b/src/main/resources/mapper/TbProductMapper.xml index 54d0c70..753a331 100644 --- a/src/main/resources/mapper/TbProductMapper.xml +++ b/src/main/resources/mapper/TbProductMapper.xml @@ -949,7 +949,7 @@ #{item} 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'