From 58d7b0e12ccd92cf3934f6582b51b5fbcecaa39a Mon Sep 17 00:00:00 2001 From: ZengTao <2773468879@qq.com> Date: 星期四, 09 五月 2024 09:42:41 +0800 Subject: [PATCH] 修改注入方式 --- springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcBitInfo.java | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcBitInfo.java b/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcBitInfo.java index e3cf8d1..31b2322 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcBitInfo.java +++ b/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcBitInfo.java @@ -2,6 +2,9 @@ import com.example.springboot.component.S7control; +import java.util.ArrayList; +import java.util.List; + public class PlcBitInfo { public PlcBitInfo(String startAddress) { @@ -68,7 +71,10 @@ return stringdatas[0]+"."+dbwindex+"."+bitindex; } - public void setAddressIndex(int addressindex) { + + + + public void setAddressIndex(int addressindex) { this.addressIndex = addressindex; } } -- Gitblit v1.8.0