yujian
2020-04-15 c6b718c3cadf5e5fff4c2a47fd1247842439f8c7
fanli/src/main/java/com/yeshi/fanli/service/impl/taobao/TLJFreeBuyGoodsUpdateServiceImpl.java
@@ -35,9 +35,18 @@
      List<TLJFreeBuyGoods> list = tljFreeBuyGoodsDao.listByGoodsId(goods.getAuctionId());
      if (list != null) {
         // 验证是否有券
         if (goods.getCouponAmount() == null || goods.getCouponAmount().compareTo(new BigDecimal(0)) <= 0) {
            for (TLJFreeBuyGoods tljGoods : list) {
               tljFreeBuyGoodsDao.delete(tljGoods.getId());
            }
            return;
         }
         // 计算券后价  1<= n <= 2
         BigDecimal couplePrice = TaoBaoUtil.getAfterUseCouplePrice(goods);
         if (couplePrice.compareTo(new BigDecimal(1.0)) < 0 && couplePrice.compareTo(new BigDecimal(2.0)) > 0) {
         if (couplePrice.compareTo(new BigDecimal(1.0)) < 0 || couplePrice.compareTo(new BigDecimal(2.0)) > 0) {
            for (TLJFreeBuyGoods tljGoods : list) {
               tljFreeBuyGoodsDao.delete(tljGoods.getId());
            }