自动化立体仓库 - WMS系统
chen.llin
17 小时以前 46168fbb7c925b0ec04def176095e967720e684a
src/main/java/com/zy/asrs/task/WorkMastScheduler.java
@@ -6,12 +6,14 @@
import com.zy.asrs.service.WrkMastService;
import com.zy.asrs.task.core.ReturnT;
import com.zy.asrs.task.handler.WorkMastHandler;
import com.zy.common.properties.SchedulerProperties;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
import java.util.Date;
import java.util.List;
@@ -30,8 +32,14 @@
    @Autowired
    private TaskService taskService;
    @Resource
    private SchedulerProperties schedulerProperties;
    @Scheduled(cron = "0/3 * * * * ? ")
    private void execute() {
        if (!schedulerProperties.isEnabled()) {
            return;
        }
        List<WrkMast> wrkMasts = wrkMastService.selectToBeCompleteData();
        if (wrkMasts.isEmpty()) {
            return;
@@ -51,6 +59,9 @@
    @Scheduled(cron = "0/3 * * * * ? ")
    private void executeTask() {
        if (!schedulerProperties.isEnabled()) {
            return;
        }
        List<Task> wrkMasts = taskService.selectToBeCompleteData();
        if (wrkMasts.isEmpty()) {
            return;