xiaoyong931011
2022-12-21 b5ea51a413dc474d471c7c1572730f5cf73d6c25
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>