| | |
| | | package com.yeshi.fanli.job;
|
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import org.springframework.scheduling.annotation.Scheduled;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import com.yeshi.fanli.service.inter.user.integral.IntegralTaskRecordService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | |
|
| | | /**
|
| | | * 金币任务
|
| | | * |
| | | * @author Administrator
|
| | | *
|
| | | */
|
| | | @Component
|
| | | public class IntegralJob {
|
| | |
|
| | | @Resource
|
| | | private IntegralTaskRecordService integralTaskRecordService;
|
| | |
|
| | | /**
|
| | | * 金币过期
|
| | | */
|
| | | @Scheduled(cron = "0 13 3 * * ? ")
|
| | | public void updateGoods() {
|
| | | if (!Constant.IS_TASK)
|
| | | return;
|
| | | |
| | | integralTaskRecordService.invalidGoldCoin();
|
| | | }
|
| | | |
| | | }
|
| | | package com.yeshi.fanli.job; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import com.yeshi.fanli.service.inter.user.integral.IntegralTaskRecordService; |
| | | import com.yeshi.fanli.util.Constant; |
| | | |
| | | /** |
| | | * 金币任务 |
| | | * |
| | | * @author Administrator |
| | | * |
| | | */ |
| | | @Component |
| | | public class IntegralJob { |
| | | |
| | | @Resource |
| | | private IntegralTaskRecordService integralTaskRecordService; |
| | | |
| | | /** |
| | | * 金币过期 |
| | | */ |
| | | @Scheduled(cron = "0 13 3 * * ? ") |
| | | public void updateGoods() { |
| | | if (!Constant.IS_TASK) |
| | | return; |
| | | |
| | | integralTaskRecordService.invalidGoldCoin(); |
| | | } |
| | | |
| | | } |