From f49de44b69924fc3c4dfea159b13a412983b8f93 Mon Sep 17 00:00:00 2001 From: wuyouming666 <2265557248@qq.com> Date: 星期二, 16 一月 2024 13:52:28 +0800 Subject: [PATCH] 增加交互状态界面 I/O标志缩小增加备注 --- springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterObject.java | 20 ++++++++++++++++++++ 1 files changed, 20 insertions(+), 0 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterObject.java b/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterObject.java index 163c45e..56a0230 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterObject.java +++ b/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterObject.java @@ -64,6 +64,8 @@ return null; } + + /** * 鏍规嵁鍙傛暟鏍囪瘑 鑾峰彇鏌愪釜鍙傛暟瀹炰緥 * @@ -80,6 +82,24 @@ } return arrayList; } + + + public List<String> getPlcAddressList(String codeid) { + List<String> addressList = new ArrayList<>(); + if (plcParameterList != null) { + for (PlcParameterInfo plcParameterInfo : plcParameterList) { + if (plcParameterInfo.getCodeId().equals(codeid)) { + int plcAddress = plcParameterInfo.getPlcAddress(); + if (!addressList.contains(plcAddress)) { + addressList.add(String.valueOf(plcAddress)); + } + } + } + } + return addressList; + } + + /** * 娣诲姞鍙傛暟瀹炰緥 -- Gitblit v1.8.0