自动化立体仓库 - WCS系统
zhangc
2025-03-11 d5449236ef0b3adafb3e4cc872f50479efa0ce7b
src/main/java/com/zy/core/MainCpProcess.java
File was renamed from src/main/java/com/zy/core/CPMainProcess.java
@@ -16,7 +16,7 @@
@Data
@Slf4j
@Component
public class CPMainProcess {
public class MainCpProcess {
    @Autowired
    private MainServiceImpl mainService;
@@ -28,7 +28,7 @@
    /**
     * =====>>  开始工作
     */
    public void start(){
    public void start() {
        thread = new Thread(() -> {
            while (!Thread.currentThread().isInterrupted()) {
                try {
@@ -67,7 +67,7 @@
                    }
                    //自动派发任务
   //                 mainService.autoDistribute();
                    //                 mainService.autoDistribute();
                    //自动完成任务
//                    mainService.autoCompleteTask();
                    //agv取放货完成
@@ -82,7 +82,7 @@
    }
    @PreDestroy
    public void shutDown(){
    public void shutDown() {
        if (thread != null) thread.interrupt();
    }