*
lsh
2 天以前 e17ed3d864eb7da392cf598fbbb15da64a6ff642
src/main/java/com/zy/core/MainProcess.java
@@ -23,9 +23,9 @@
    // 所属线程
    private Thread thread;
    private Thread thread2;
    private Thread thread3;
    private Thread thread4;
    private Thread thread5;
//    private Thread thread3;
//    private Thread thread4;
//    private Thread thread5;
    /**
     * =====>>  开始工作
@@ -37,21 +37,21 @@
        thread2 = new Thread(this::crnAndDevOtherRun);
        thread2.start();
        thread5 = new Thread(this::demoRun5);
        thread5.start();
        thread3 = new Thread(this::demoRun);
        thread3.start();
        thread4 = new Thread(this::demoOpenRun);
        thread4.start();
//        thread5 = new Thread(this::demoRun5);
//        thread5.start();
//
//        thread3 = new Thread(this::demoRun);
//        thread3.start();
//
//        thread4 = new Thread(this::demoOpenRun);
//        thread4.start();
    }
    private void crnAndDevRun() {
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(1000);
                Thread.sleep(700);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
@@ -64,6 +64,8 @@
                mainService.generateStoreWrkFile(); // 组托
//                    mainService.generateStoreWrkFileIsEmptyMk(); // 组托  空托
                mainService.generateStoreWrkFileWalk(); // wms入库任务下发
                // 出库  ===>>  堆垛机出库站到出库站
                mainService.crnStnToOutStn();
                // 入出库  ===>>  堆垛机入出库作业下发
                mainService.crnIoExecute();
                // 入库  ===>> 执行对工作档的完成操作
@@ -82,7 +84,7 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(400);
                Thread.sleep(200);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
@@ -91,8 +93,6 @@
                if (SystemProperties.WCS_RUNNING_STATUS_DEMO.get()) {
                    continue;
                }
                // 出库  ===>>  堆垛机出库站到出库站
                mainService.crnStnToOutStn();
                // 堆垛机异常信息记录
                mainService.recCrnErr();
                // 输送线异常信息记录
@@ -111,7 +111,7 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(1000);
                Thread.sleep(210);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
@@ -136,7 +136,7 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(200);
                Thread.sleep(100);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
@@ -161,7 +161,7 @@
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(1000);
                Thread.sleep(50);
                // 系统演示模式运行状态变化
                if (SystemProperties.WCS_RUNNING_STATUS_DEMO.get()) {
                    if (SystemProperties.WCS_RUNNING_STATUS_DEMO_VALUE == 2) {
@@ -213,9 +213,9 @@
    public void shutDown() {
        if (thread != null) thread.interrupt();
        if (thread2 != null) thread2.interrupt();
        if (thread3 != null) thread3.interrupt();
        if (thread4 != null) thread4.interrupt();
        if (thread5 != null) thread5.interrupt();
//        if (thread3 != null) thread3.interrupt();
//        if (thread4 != null) thread4.interrupt();
//        if (thread5 != null) thread5.interrupt();
    }
}