admin
2020-06-08 a34d378f8529d3e7ebe96d656349da26fdc0dbbb
Merge remote-tracking branch 'origin/div' into div
1个文件已修改
6 ■■■■ 已修改文件
fanli/src/main/java/com/yeshi/fanli/service/impl/goods/ShareGoodsTextTemplateServiceImpl.java 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
fanli/src/main/java/com/yeshi/fanli/service/impl/goods/ShareGoodsTextTemplateServiceImpl.java
@@ -905,12 +905,12 @@
            BigDecimal amount = new BigDecimal(goods.getCouponInfo().getCouponValue());
            BigDecimal startFee = new BigDecimal(goods.getCouponInfo().getBounsLimit());
            BigDecimal zkPrice = new BigDecimal(commodityPrice);
            BigDecimal couponPrice  = zkPrice;
            if (zkPrice.compareTo(startFee) >= 0) {
                couponPrice = zkPrice.subtract(amount);
                BigDecimal couponPrice = zkPrice.subtract(amount);
                commentText = commentText.replace("[券后价]",BigDecimalUtil.getWithNoZera(couponPrice).toString());
            } else {
                commentText = commentText.replace("【券后价】[券后价]元", "");
                commentText = commentText.replace("[券后价]", BigDecimalUtil.getWithNoZera(new BigDecimal(commodityPrice)).toString());
            }
        } else {
            commentText = commentText.replace("领券抢购", "抢购");