1
xiaoyong931011
2023-01-17 f7c7a1d550444e88c8f7033a8a586211ab8c3ce7
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>