ZengTao
2024-04-02 8214fc7df356af90f73ee54433f0ebfdceb37db8
UnLoadGlassModule/src/main/java/com/mes/service/Plchome.java
@@ -8,10 +8,10 @@
@Component
public class Plchome extends Thread {
    private int i = 1;
    private final Supplier<PlcService> plcServiceSupplier;
    private final Supplier<DownGlassLogic> plcServiceSupplier;
    public Plchome() {
        this.plcServiceSupplier = () -> WebSocketServer.applicationContext.getBean(PlcService.class);
        this.plcServiceSupplier = () -> WebSocketServer.applicationContext.getBean(DownGlassLogic.class);
    }
@@ -22,7 +22,7 @@
            try {
                i++;
                Thread.sleep(100);
                PlcService plcService = plcServiceSupplier.get();
                DownGlassLogic plcService = plcServiceSupplier.get();
               // plcService.performPlcActions();
                //plcService.unloadpush();