| | |
| | | && goods.getCouponAmount().compareTo(new BigDecimal(0)) > 0) { |
| | | |
| | | // 淘礼金的金额位于1-10块之间 必须是天猫 |
| | | if (TaoBaoUtil.getAfterUseCouplePrice(goods).multiply(goods.getTkRate()) |
| | | if (TaoBaoUtil.getCouponPrice(goods).multiply(goods.getTkRate()) |
| | | .compareTo(new BigDecimal("143")) >= 0 |
| | | && TaoBaoUtil.getAfterUseCouplePrice(goods).multiply(goods.getTkRate()) |
| | | && TaoBaoUtil.getCouponPrice(goods).multiply(goods.getTkRate()) |
| | | .compareTo(new BigDecimal("1430")) <= 0 |
| | | && goods.getUserType() == 1) { |
| | | goods = daTaoKeGoodsDetailV2Service.filterTaoBaoGoods(goods).getGoods(); |
| | |
| | | int n = random.nextInt(list.size()); |
| | | TaoBaoGoodsBrief goods = list.get(n); |
| | | if (goods.getCouponAmount() != null && goods.getCouponAmount().compareTo(new BigDecimal(0)) > 0) { |
| | | BigDecimal couplePrice = TaoBaoUtil.getAfterUseCouplePrice(goods); |
| | | BigDecimal couplePrice = TaoBaoUtil.getCouponPrice(goods); |
| | | if (couplePrice.compareTo(new BigDecimal(1.0)) >= 0 && couplePrice.compareTo(new BigDecimal(2.0)) <= 0) { |
| | | tljFreeBuyGoodsService.addGoods(new TLJFreeBuyGoods(day, goods)); |
| | | count ++; |