fix
Hentua
2023-06-06 a0b38fde518eb0f1970c31c5d64ed9f821f459aa
src/main/java/cc/mrbird/febs/mall/service/impl/ApiMallGoodsServiceImpl.java
@@ -66,8 +66,8 @@
        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)));
        int scorePercent = mallGoodsDetailsVo.getScorePercent() == null ? 0 : mallGoodsDetailsVo.getScorePercent();
        mallGoodsDetailsVo.setScorePercentNum(new BigDecimal(scorePercent).multiply(new BigDecimal("0.01")));
        return mallGoodsDetailsVo;
    }