| | |
| | | import org.springframework.scheduling.annotation.Scheduled;
|
| | | import org.springframework.stereotype.Component;
|
| | |
|
| | | import com.yeshi.fanli.service.inter.hongbao.ThreeSaleRankService;
|
| | | import com.yeshi.fanli.service.inter.hongbao.ThreeSaleSerivce;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.service.inter.user.invite.ThreeSaleSerivce;
|
| | |
|
| | | @Component
|
| | | public class ThreeSaleJob {
|
| | |
| | | @Resource
|
| | | private ThreeSaleSerivce threeSaleSerivce;
|
| | |
|
| | | @Resource
|
| | | private ThreeSaleRankService threeSaleRankService;
|
| | |
|
| | | @Scheduled(cron = "0 0 */1 * * ? ")
|
| | | public void twentyFour() {
|
| | | // if (Constant.IS_TASK)
|
| | | // threeSaleSerivce.validateTwentyFour();
|
| | | }
|
| | |
|
| | | @Scheduled(cron = "0 0 0 * * ? ")
|
| | | public void aYear() {
|
| | | if (Constant.IS_TASK)
|
| | | threeSaleSerivce.validate365();
|
| | | }
|
| | |
|
| | | @Scheduled(cron = "0 0 0 ? * MON ")
|
| | | public void updateRank() {
|
| | | if (Constant.IS_TASK)
|
| | | threeSaleRankService.update();
|
| | | // if (Constant.IS_TASK)
|
| | | // threeSaleSerivce.validateTwentyFour();
|
| | | }
|
| | |
|
| | | }
|