xiaoyong931011
2023-01-05 4cf41b4bd85f8ea18f3e286a841888c01f94ac6a
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;
    }