Administrator
7 days ago f9e40800aa15abd4cfd2799f334b015e6f13629c
src/main/java/cc/mrbird/febs/mall/quartz/ProfitJob.java
@@ -37,38 +37,38 @@
@ConditionalOnProperty(prefix = "system", name = "job", havingValue = "true")
public class ProfitJob {
    @Resource
    private HappyActivityService happyActivityService;
    /**
     * 活动时间结束更新
     *          一分钟运行一次
     */
    @Scheduled(cron = "0 0/1 * * * ? ")
    public void activityEnd() {
        happyActivityService.activityEnd();
    }
    /**
     * 活动时间开始更新
     *          一分钟运行一次
     */
    @Scheduled(cron = "0 0/1 * * * ? ")
    public void activityStart() {
        happyActivityService.activityStart();
    }
    /**
     * 订单失效
     *          五分钟运行一次
     */
    @Scheduled(cron = "0 0/5 * * * ? ")
    public void overtimeJob() {
        happyActivityService.overtimeJob();
    }
//    @Resource
//    private HappyActivityService happyActivityService;
//
//    /**
//     * 活动时间结束更新
//     *          一分钟运行一次
//     */
//    @Scheduled(cron = "0 0/1 * * * ? ")
//    public void activityEnd() {
//        happyActivityService.activityEnd();
//    }
//
//    /**
//     * 活动时间开始更新
//     *          一分钟运行一次
//     */
//    @Scheduled(cron = "0 0/1 * * * ? ")
//    public void activityStart() {
//
//        happyActivityService.activityStart();
//
//    }
//
//
//
//    /**
//     * 订单失效
//     *          五分钟运行一次
//     */
//    @Scheduled(cron = "0 0/5 * * * ? ")
//    public void overtimeJob() {
//        happyActivityService.overtimeJob();
//    }
}