xiaoyong931011
2022-09-07 65e5e0a89ae66f3966290af58db5ed82f66531c1
src/main/resources/mapper/modules/MallGoodsMapper.xml
@@ -261,7 +261,7 @@
            (select count(z.id) from mall_goods_comment z where z.goods_id = #{id}
                                                            and (z.star <![CDATA[ >= ]]> 3 and z.star <![CDATA[ <= ]]> 4)) goodNum,
            (select count(z.id) from mall_goods_comment z where z.goods_id = #{id} and (z.star <![CDATA[ < ]]> 3 )) badNum
        from mall_goods_comment a
        from mall_goods_comment a limit 1
    </select>
</mapper>