1
xiaoyong931011
2023-02-03 f7ffc7960e3a59176137013a5a774e88cceaac4f
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallGoodsServiceImpl.java
@@ -66,6 +66,8 @@
        objectQueryWrapper.eq("goods_id",id);
        Integer commentCount = mallGoodsCommentMapper.selectCount(objectQueryWrapper);
        mallGoodsDetailsVo.setCommentCount(commentCount);
        Double star = mallGoodsCommentMapper.selectSumStarByGoodsId(id);
        mallGoodsDetailsVo.setStar(star);
        return mallGoodsDetailsVo;
    }