mitao
2024-07-24 a23c1bd8fe016c43698e9fb2636f533eb4441712
修改bug
2个文件已修改
6 ■■■■■ 已修改文件
ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/RuoYiPromotionApplication.java 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/scheduler/PromotionScheduler.java 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/RuoYiPromotionApplication.java
@@ -6,6 +6,7 @@
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
 * 系统模块
@@ -17,6 +18,7 @@
@EnableCustomSwagger2
@EnableRyFeignClients
@SpringBootApplication
@EnableScheduling
public class RuoYiPromotionApplication
{
    public static void main(String[] args)
ruoyi-modules/ruoyi-promotion/src/main/java/com/ruoyi/promotion/scheduler/PromotionScheduler.java
@@ -18,9 +18,9 @@
    private final ICouponMemberService couponMemberService;
    /**
     * 每天凌晨定时检查优惠券过期
     * 每小时定时检查优惠券过期
     */
    @Scheduled(cron = "1 0 0 * * ?")
    @Scheduled(cron = "0 0 * * * *")
    private void timingCheckMemberCoupon() {
        log.info("----------------定时检查优惠券过期任务开始执行----------------");
        couponMemberService.timingCheckMemberCoupon();