fix
Hentua
2023-04-23 4f65db3a1766fea81630d31a648c1c14b2d21c24
src/main/java/cc/mrbird/febs/mall/quartz/ProfitJob.java
@@ -1,5 +1,6 @@
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;
@@ -40,47 +41,23 @@
    /**
     * 代理分红
     */
//    @Scheduled(cron = "0 30 0 * * ?")
//    public void profitJob() {
//        memberProfitService.agentProfit(null);
//    }
//    @Scheduled(cron = "0 30 1 * * ?")
//    public void storeAndDirectorJob() {
//        memberProfitService.storeAndDirectorProfit(null);
//    }
    /**
     * 线下服务中心补贴
     */
    @Scheduled(cron = "0 0 1 * * ?")
    public void thankfulJob() {
        memberProfitService.thankfulProfit(null);
    @Scheduled(cron = "0 30 0 * * ?")
    public void agentProfitJob() {
        log.info("运行代理分红程序");
        memberProfitService.agentProfit(AccountLevelEnums.VVIP.getLevel());
    }
    @Scheduled(cron = "5 30 0 * * ?")
    public void partnerProfitJob() {
        log.info("运行股东分红程序");
        memberProfitService.agentProfit(AccountLevelEnums.VVVIP.getLevel());
    }
    /**
     * 静态分红
     * 全网分红
     */
//    @Scheduled(cron = "0 0 0 * * ?")
//    public void staticProfitJob() {
//        memberProfitService.staticProfit(null);
//    }
    @Scheduled(cron = "0 10 0 * * ?")
    public void allInternetProfitJob() {
    /**
     * 排名奖 每月1号
     */
//    @Scheduled(cron = "0 30 0 1 * ?")
//    public void rankJob() {
//        memberProfitService.rankProfit();
//    }
    /**
     * 积分池,所有消费拿出10%放到积分池,然后按1%每天释放加权平分
     */
//    @Scheduled(cron = "0 0 2 * * ?")
//    @Scheduled(cron = "0 0/5 * * * ? ")
//    public void scorePool() {
//        memberProfitService.scorePool();
//    }
    }
}