| | |
| | | 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("领券抢购", "抢购");
|