Administrator
3 天以前 aa33e56e37cd19b88ae8eea69c5ebc7c6da8b1d2
src/main/java/com/zy/asrs/task/TaskLogScheduler.java
@@ -10,7 +10,6 @@
import com.zy.common.utils.Synchro;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
@@ -33,16 +32,9 @@
    @Autowired
    private TaskWrkReportService taskWrkReportService;
    @Value("${wms.url}")
    private String wmsUrl;
    @Value("${wms.TaskExecCallback}")
    private String TaskExecCallback;
    @Scheduled(cron = "0/3 * * * * ? ")
    public void execute() throws IOException {
    @Scheduled(cron = "0/5 * * * * ? ")
    public synchronized void execute() throws IOException {
        for (TaskWrk taskWrk : taskWrkService.selectToBeHistoryData()) {
            switch (taskWrk.getStatus()) {
                case 4: