| | |
| | | package cc.mrbird.febs.mall.quartz; |
| | | |
| | | import cc.mrbird.febs.common.enumerates.AccountLevelEnums; |
| | | import cc.mrbird.febs.common.enumerates.AgentLevelEnum; |
| | | import cc.mrbird.febs.common.enumerates.MoneyFlowTypeEnum; |
| | | import cc.mrbird.febs.common.utils.MallUtils; |
| | |
| | | * 代理分红 |
| | | */ |
| | | @Scheduled(cron = "0 30 0 * * ?") |
| | | public void profitJob() { |
| | | memberProfitService.agentProfit(null); |
| | | public void agentProfitJob() { |
| | | log.info("运行代理分红程序"); |
| | | memberProfitService.agentProfit(AccountLevelEnums.VVIP.getLevel()); |
| | | } |
| | | |
| | | @Scheduled(cron = "0 30 1 * * ?") |
| | | public void storeAndDirectorJob() { |
| | | memberProfitService.storeAndDirectorProfit(null); |
| | | @Scheduled(cron = "5 30 0 * * ?") |
| | | public void partnerProfitJob() { |
| | | log.info("运行股东分红程序"); |
| | | memberProfitService.agentProfit(AccountLevelEnums.VVVIP.getLevel()); |
| | | } |
| | | |
| | | /** |
| | | * 感恩奖 |
| | | * 全网分红 |
| | | */ |
| | | @Scheduled(cron = "0 0 1 * * ?") |
| | | public void thankfulJob() { |
| | | memberProfitService.thankfulProfit(null); |
| | | } |
| | | @Scheduled(cron = "0 10 0 * * ?") |
| | | public void allInternetProfitJob() { |
| | | |
| | | |
| | | /** |
| | | * 静态分红 |
| | | */ |
| | | @Scheduled(cron = "0 0 0 * * ?") |
| | | public void staticProfitJob() { |
| | | memberProfitService.staticProfit(null); |
| | | } |
| | | |
| | | /** |
| | | * 排名奖 每月1号 |
| | | */ |
| | | @Scheduled(cron = "0 30 0 1 * ?") |
| | | public void rankJob() { |
| | | memberProfitService.rankProfit(); |
| | | } |
| | | } |