xiaoyong931011
2023-01-06 d8f20196fb659300b0a8eb3e7c5d7ab1ad7fcb7e
src/main/resources/mapper/modules/MallGoodsCommentMapper.xml
@@ -22,4 +22,10 @@
        order by a.created_time desc
    </select>
    <select id="selectSumStarByGoodsId" resultType="java.lang.Double">
        select Ifnull(sum(star),0)
        from mall_goods_comment a
        where goods_id = #{goodsId}
    </select>
</mapper>