xiaoyong931011
2022-09-02 8c69dd652990027080461e02d418653e4ac22223
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>