*
lsh
2025-11-24 8037aaf2ea84786f7d2442d10b17743d6c27c89a
src/main/java/com/zy/core/MainProcess.java
@@ -24,6 +24,7 @@
    private MainServiceImpl mainService;
    // 所属线程
    private Thread thread;
    private Thread rgvThread;
    private Thread licenseThread;
    // 频率
    private int i = 0;
@@ -36,6 +37,8 @@
    public void start(){
        thread = new Thread(this::crnAndDevRun);
        thread.start();
        rgvThread = new Thread(this::rgvRun);
        rgvThread.start();
        licenseThread = new Thread(this::licenseThreadRun);
        licenseThread.start();
    }
@@ -88,6 +91,25 @@
            }
        }
    }
    private void rgvRun() {
        while (!Thread.currentThread().isInterrupted()) {
            try {
                // 间隔
                Thread.sleep(1000);
                // 系统运行状态判断
                if (!SystemProperties.WCS_RUNNING_STATUS.get()) {
                    continue;
                }
                // 任务下发
//                mainService.taskStart();
            } catch (Exception e) {
                e.printStackTrace();
            }
        }
    }
    private void licenseThreadRun(){
        int i = 0;
@@ -120,6 +142,7 @@
    @PreDestroy
    public void shutDown(){
        if (thread != null) thread.interrupt();
        if (rgvThread != null) rgvThread.interrupt();
        if (licenseThread != null) licenseThread.interrupt();
    }