#
yxFwq
1 天以前 572a655759f4f8fcfce2c89db491dd837327527a
src/main/java/com/zy/core/MainProcess.java
@@ -39,8 +39,8 @@
        thread = new Thread(this::cenAndDevRun);
        thread.start();
        thread2 = new Thread(this::jarRun);
        thread2.start();
//        thread2 = new Thread(this::jarRun);
//        thread2.start();
    }
@@ -99,22 +99,7 @@
                mainService.signTrunBig();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
    private void jarRun() {
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(500);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
                }
                k++;
                if (k>5) {
                    k=0;
@@ -141,11 +126,27 @@
                mainService.jarChargeGenerate();
                /************************************JAR调度************************************/
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
    private void jarRun() {
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(500);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
                }} catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
    @PreDestroy
    public void shutDown(){