yujian
2020-07-01 b2e526370aaed3e20ebabd7ca494e0fb2b2ca73e
fanli/src/main/java/com/yeshi/fanli/job/goods/PullNewJob.java
@@ -8,7 +8,6 @@
import javax.annotation.Resource;
import org.apache.commons.beanutils.PropertyUtils;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import org.yeshi.utils.DateUtil;
@@ -50,11 +49,6 @@
   }
   
   @Scheduled(cron = "0 0/2 * * * ? ")
   private void addPullNewGoods2() {
      addPullNewGoods();
   }
   /**
    * 拉新商品
    */
@@ -62,8 +56,6 @@
      // 商品比例限制
       double limitRate =  Double.valueOf(redPackConfigService.getValueByKey("goods_reate_limit"));   
       double limitPrice =  Double.valueOf(redPackConfigService.getValueByKey("goods_pay_ment_limit"));   
      Integer array[] = {3,4,5,6,7,8,9,10,11,12,15};
      for (Integer catId: array) {
         Integer minId = 1;
@@ -87,7 +79,7 @@
               if (goods.getCouponmoney() == null || goods.getCouponmoney() <= 0)
                  continue;
               // 商品券后价大于9.9元
               if (goods.getItemendprice() == null || goods.getItemendprice() <= limitPrice)
               if (goods.getItemendprice() == null || goods.getItemendprice() < limitPrice)
                  continue;
               PullNewGoods pullNewGoods = new PullNewGoods();