From 5d4062b4caf6af878db6049f8dbefe8ffe41a57e Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期二, 23 四月 2024 09:48:13 +0800 Subject: [PATCH] 删除多余代码 --- springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java b/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java index 30061c1..d0996cf 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java +++ b/springboot-vue3/src/main/java/com/example/springboot/component/PlcHold.java @@ -5,7 +5,7 @@ import org.springframework.beans.factory.annotation.Autowired; import com.example.springboot.service.JdbcConnections; import com.example.springboot.service.SpianService; -import com.example.springboot.service.SpianServiceNew; + import com.example.springboot.entity.north_glass_buffer1; import com.example.springboot.mapper.AlarmMapper; import com.example.springboot.mapper.SpianMapper; @@ -18,7 +18,7 @@ private JdbcConnections jdbcConnections; private SpianMapper spianMapper; private SpianService spianService; - private SpianServiceNew spianServiceNew; + int aaa; @Override @@ -32,11 +32,11 @@ // \\ TODO Auto-generated catch block e.printStackTrace(); } - + // if (S7control.getinstance().CheckConnected() == false) { spianService = WebSocketServer.applicationContext.getBean(SpianService.class); spianMapper = WebSocketServer.applicationContext.getBean(SpianMapper.class); - spianServiceNew = WebSocketServer.applicationContext.getBean(SpianServiceNew.class); + jdbcConnections = WebSocketServer.applicationContext.getBean(JdbcConnections.class); // 鏍规嵁鐜荤拑id鑾峰彇璁㈠崟鍙�,鍗曠嫭鏁版嵁婧� // try { @@ -48,7 +48,7 @@ // } // 鍑虹墖浠诲姟//////////////////////////////// - spianServiceNew.selectout2("X21942613103GV"); + spianService.selectout2("X21942613103GV"); List<Short> outlist = S7control.getinstance().ReadWord("DB106.20", 1); // 鍑虹墖杞︾姸鎬� List<Short> outlist1 = S7control.getinstance().ReadWord("DB105.18", 1); // 鍑虹墖浠诲姟鏄惁鍚姩 -- Gitblit v1.8.0