xiaoyong931011
2023-04-08 2f3dde64a0549c47300968211b43718f423d53fd
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;
    }