ZengTao
2024-01-26 f392f9d594095738ba4d82885251de40b752f843
springboot-vue3/src/main/java/com/example/springboot/component/Plchome.java
@@ -20,6 +20,7 @@
import com.example.springboot.entity.StorageCage;
import com.example.springboot.entity.alarmmg;
import com.example.springboot.entity.north_glass_buffer1;
import com.example.springboot.entity.device.PlcParameterObject;
import com.example.springboot.mapper.HomeMapper;
import com.example.springboot.mapper.SpianMapper;
@@ -63,6 +64,9 @@
            try {
                Thread.sleep(1000);
                // 注入mapper
                PlcParameterObject PlcReadObjects=PLCAutoMes.PlcMesObject;
                homeMapper = WebSocketServer.applicationContext.getBean(HomeMapper.class);
                spianMapper = WebSocketServer.applicationContext.getBean(SpianMapper.class);
                spianService = WebSocketServer.applicationContext.getBean(SpianService.class);
@@ -127,6 +131,8 @@
                // if (S7control.getinstance().CheckConnected() == true) {
                // 铝框线交互
                if (S7controlLK.getinstance().CheckConnected() == true) {
                    if (CurrentFrame != null) {