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