xiaoyong931011
2022-12-22 ab13cdcfe8c9852be7a606c272a42bb0fa7d2cf1
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>