| | |
| | | goods.put("coupon", StringUtil.isNullOrEmpty(tb.getCouponInfo()) ? false : true); |
| | | // 获取券信息 |
| | | if (!StringUtil.isNullOrEmpty(tb.getCouponInfo())) { |
| | | BigDecimal quanPrice = TaoBaoUtil.getAfterUseCouplePrice(tb); |
| | | BigDecimal quanPrice = TaoBaoUtil.getCouponPrice(tb); |
| | | JSONObject couponInfo = new JSONObject(); |
| | | couponInfo.put("couponPrice", quanPrice.toString()); |
| | | // 服务端转链 |
| | |
| | | if (!StringUtil.isNullOrEmpty(tb.getCouponInfo()) && tb.getCouponAmount() != null |
| | | && tb.getCouponAmount().compareTo(new BigDecimal(0)) > 0 && tb.getCouponEffectiveStartTime() != null |
| | | && tb.getCouponEffectiveEndTime() != null) { |
| | | BigDecimal quanPrice = TaoBaoUtil.getAfterUseCouplePrice(tb); |
| | | BigDecimal quanPrice = TaoBaoUtil.getCouponPrice(tb); |
| | | JSONObject couponInfo = new JSONObject(); |
| | | couponInfo.put("couponPrice", MoneyBigDecimalUtil.getWithNoZera(quanPrice).toString()); |
| | | |