自动化立体仓库 - WMS系统
luxiaotao1123
2020-07-06 bbec050a48fbf8156be31cd6fcd3c0f2bca7d638
src/main/java/com/zy/asrs/task/WcsDispatcher.java
@@ -1,7 +1,9 @@
package com.zy.asrs.task;
import com.zy.asrs.task.handler.WorkMastHandler;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
@@ -15,8 +17,10 @@
public class WcsDispatcher {
    private static Logger log = LoggerFactory.getLogger(WcsDispatcher.class);
    private Thread thread;
    @Autowired
    private WorkMastHandler workMastHandler;
    @PostConstruct
    private void start(){
@@ -25,6 +29,7 @@
                try {
                    Thread.sleep(3000);
                    workMastHandler.start();
                } catch (Exception e) {