自动化立体仓库 - WMS系统
#
1
20 小时以前 a3f0b0d521d07c3a735f82388537521ca2c2e3ed
src/main/java/com/zy/asrs/task/ExceptionNoticeScheduler.java
@@ -1,12 +1,17 @@
package com.zy.asrs.task;
import com.zy.asrs.task.core.ReturnT;
import com.zy.asrs.task.handler.ExceptionNoticeHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import static org.reflections.Reflections.log;
@Component
public class ExceptionNoticeScheduler {
    @Scheduled(cron = "0/1 * * * * ? ")
    @Autowired
    private ExceptionNoticeHandler exceptionNoticeHandler;
    @Scheduled(cron = "0/30 * * * * ? ")
    private void execute(){
        ReturnT<String> returnT = exceptionNoticeHandler.start();
        if (!returnT.isSuccess()) {