From c1d88895501846c4ad1ba2b16f4a8ae10ca2b061 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期二, 26 三月 2024 15:32:35 +0800 Subject: [PATCH] 代码更新 --- springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterInfo.java | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterInfo.java b/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterInfo.java index e1d7e6e..dacfd4c 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterInfo.java +++ b/springboot-vue3/src/main/java/com/example/springboot/entity/device/PlcParameterInfo.java @@ -91,6 +91,7 @@ public void setRatio(int ratio) { this.ratio = ratio; } + /** * 鑾峰彇鍦板潃 @@ -111,8 +112,8 @@ } if (addressLength == 14 ) { int wordindex = index; - int newIndex = wordindex + 13; - return stringdatas[0] + "." + wordindex +"-" + newIndex; + //int newIndex = wordindex + 13; + return stringdatas[0] + "." + wordindex ; } return null; } @@ -121,4 +122,7 @@ return addressIndex; } + public String getAddress() { + return getAddress(this.addressIndex); + } } \ No newline at end of file -- Gitblit v1.8.0