KKSU
2024-05-13 b52d29b99c0808b23a6f07bdc87db31e5ba11a31
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallGoodsServiceImpl.java
@@ -66,6 +66,9 @@
        objectQueryWrapper.eq("goods_id",id);
        Integer commentCount = mallGoodsCommentMapper.selectCount(objectQueryWrapper);
        mallGoodsDetailsVo.setCommentCount(commentCount);
        Integer scorePercent = mallGoodsDetailsVo.getScorePercent();
        mallGoodsDetailsVo.setScorePercentNum(new BigDecimal(scorePercent).multiply(new BigDecimal(0.01)));
        return mallGoodsDetailsVo;
    }