| | |
| | | package com.yeshi.fanli.job;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.scheduling.annotation.Scheduled;
|
| | |
|
| | | import com.yeshi.fanli.service.inter.goods.TaoBaoCouponService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
|
| | | //淘宝优惠券爬去定时器(过期)
|
| | | //@Component
|
| | | public class TaoBaoCouponJob {
|
| | |
|
| | | @Resource
|
| | | private TaoBaoCouponService taoBaoCouponService;
|
| | |
|
| | | // 暂时注释掉
|
| | | @Scheduled(cron = "0 28 10 * * ? ")
|
| | | public void updateTaoBaoCoupon() {
|
| | | if (Constant.IS_TASK)
|
| | | taoBaoCouponService.updateTaoBaoCoupon();
|
| | | }
|
| | | }
|
| | | package com.yeshi.fanli.job; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | |
| | | import com.yeshi.fanli.service.inter.goods.TaoBaoCouponService; |
| | | import com.yeshi.fanli.util.Constant; |
| | | |
| | | //淘宝优惠券爬去定时器(过期) |
| | | //@Component |
| | | public class TaoBaoCouponJob { |
| | | |
| | | @Resource |
| | | private TaoBaoCouponService taoBaoCouponService; |
| | | |
| | | // 暂时注释掉 |
| | | @Scheduled(cron = "0 28 10 * * ? ") |
| | | public void updateTaoBaoCoupon() { |
| | | if (Constant.IS_TASK) |
| | | taoBaoCouponService.updateTaoBaoCoupon(); |
| | | } |
| | | } |