教育训练处考试制证系统后端
heheng
2025-05-19 3a762add44449332d6d379e361698850f6066e16
exam-system/src/main/java/com/gkhy/exam/pay/controller/PaymentApiController.java
@@ -6,6 +6,7 @@
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
@@ -63,4 +64,11 @@
            e.printStackTrace();
        }
    }
    @Scheduled(cron = "0 23 10 * * ? ")
    // @Scheduled(cron = "0 37 17 * * ?")
    public void checkWarning() {
        paymentService.schedulePayment();
    }
}