1
zhang
2025-06-18 ee5046d151a858339aa137790bc830efe7f55980
zy-acs-manager/src/main/java/com/zy/acs/manager/core/listen/AgvCompleteSubscriber.java
@@ -31,19 +31,19 @@
    @EventListener(ApplicationReadyEvent.class)
    private void start(){
    private void start() {
        thread = new Thread(() -> {
            while (!Thread.currentThread().isInterrupted()) {
                try {
                    // 间隔
                    Thread.sleep(30);
                    if (configService.getVal("stopDownData", Boolean.class)) { return; }
                    if (!configService.getVal("stopDownData", Boolean.class)) {
                        AgvProtocol protocol = redis.pop(RedisConstant.AGV_COMPLETE_FLAG);
                        if (null != protocol) {
                    AgvProtocol protocol = redis.pop(RedisConstant.AGV_COMPLETE_FLAG);
                    if (null != protocol){
                        mainService.upDataSubscribe(protocol);
                            mainService.upDataSubscribe(protocol);
                        }
                    }
                } catch (Exception e) {
@@ -55,7 +55,7 @@
    }
    @PreDestroy
    public void shutDown(){
    public void shutDown() {
        if (thread != null) thread.interrupt();
    }