| | |
| | | String couponAmount = ""; |
| | | if (coupon) { |
| | | description = goods.getDescription(); |
| | | quanPrice = TaoBaoUtil.getAfterUseCouplePrice(goods) + ""; |
| | | quanPrice = TaoBaoUtil.getCouponPrice(goods) + ""; |
| | | couponAmount = MoneyBigDecimalUtil.getWithNoZera(goods.getCouponAmount()).toString(); |
| | | } |
| | | String sales = TaoBaoUtil.getSaleCount(goods.getBiz30day()); |
| | |
| | | String quanPrice = ""; |
| | | String couponAmount = ""; |
| | | if (coupon) { |
| | | quanPrice = BigDecimalUtil.getWithNoZera(JDUtil.getQuanPrice(jdGoods)).toString() + ""; |
| | | quanPrice = BigDecimalUtil.getWithNoZera(JDUtil.getCouponPrice(jdGoods)).toString() + ""; |
| | | couponAmount = BigDecimalUtil.getWithNoZera(couponInfo.getDiscount()).toString(); |
| | | } |
| | | |
| | |
| | | if (goods == null) |
| | | throw new UserCloudException(1, "该商品已下架"); |
| | | |
| | | String jumpLink = PinDuoDuoApiUtil.getPromotionUrl(goodsId, PinDuoDuoApiUtil.PID_SHARE + "", user.getId() + ""); |
| | | String jumpLink = PinDuoDuoApiUtil.getPromotionUrl(goods.getGoodsSign(), PinDuoDuoApiUtil.PID_SHARE + "", user.getId() + ""); |
| | | |
| | | boolean coupon = true; |
| | | if (goods.getHasCoupon() == null || !goods.getHasCoupon()) { |
| | |
| | | BigDecimal hundred = new BigDecimal(100); |
| | | BigDecimal amount = MoneyBigDecimalUtil.div(new BigDecimal(goods.getCouponDiscount()), hundred); |
| | | quanPrice = BigDecimalUtil.getWithNoZera(amount).toString(); |
| | | couponAmount = BigDecimalUtil.getWithNoZera(PinDuoDuoUtil.getQuanPrice(goods)).toString(); |
| | | couponAmount = BigDecimalUtil.getWithNoZera(PinDuoDuoUtil.getCouponPrice(goods)).toString(); |
| | | } |
| | | |
| | | String sales = goods.getSalesTip(); |