*
lsh
2025-03-20 b4ed30affb513ecfafee34d71e64d6128f42ab84
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package com.zy.asrs.task;
 
import com.zy.asrs.task.handler.Task52Handler;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
 
 
/**
 * Created by Monkey D. Luffy on 2023.07.25
 * 徐工汉云..............以下.............上饶江铜.............拆垛信息上传
 */
@Slf4j
@Component
public class Task52Scheduler {
 
    @Autowired
    private Task52Handler task52Handler;
 
    @Scheduled(cron = "0/30 * * * * ? ")
    private void execute(){
        try{
            task52Handler.start();
        }catch (Exception e){
            log.error("异常信息:"+e);
        }
    }
}