From 67b0ccf9e6a77767bd5b0823bc80bee474f49f9b Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期二, 12 九月 2023 18:28:27 +0800 Subject: [PATCH] 新增数据库连接文件,逻辑优化 --- springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java index 01d9ef1..91b1802 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java +++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plcalarm.java @@ -21,6 +21,11 @@ List<Boolean> plclist = S7control.getinstance().ReadBits("DB104.DBx0.0", 40); + if(plclist==null){ + + }else{ + + JSONObject jsonObject = new JSONObject(); jsonObject.append("params", plclist); @@ -88,5 +93,6 @@ } } } + } } } \ No newline at end of file -- Gitblit v1.8.0