From a5d84287cf9cb8a7cf2a7ecb54febb1d38060c6e Mon Sep 17 00:00:00 2001 From: wangyan Date: Fri, 10 Oct 2025 16:30:26 +0800 Subject: [PATCH] =?UTF-8?q?refactor(controller):=20=E8=B0=83=E6=95=B4?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=95=B0=E6=8D=AE=E5=A4=84=E7=90=86=E9=80=BB?= =?UTF-8?q?=E8=BE=91-=20=E4=BF=AE=E6=94=B9=20AppPosiDeviceController=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E6=9D=A1=E4=BB=B6=E5=88=A4=E6=96=AD=E7=BB=93?= =?UTF-8?q?=E6=9E=84=20-=20=E5=B0=86=20else=20if=20=E6=9B=BF=E6=8D=A2?= =?UTF-8?q?=E4=B8=BA=E7=8B=AC=E7=AB=8B=E7=9A=84=20if=20=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E6=8F=90=E9=AB=98=E4=BB=A3=E7=A0=81=E5=8F=AF=E8=AF=BB=E6=80=A7?= =?UTF-8?q?-=20=E4=BF=9D=E6=8C=81=E6=95=B0=E6=8D=AE=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E9=80=BB=E8=BE=91=E4=B8=8D=E5=8F=98=EF=BC=8C=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E6=B5=81=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/zcloud/controller/AppPosiDeviceController.java | 6 ++++-- src/main/resources/application.properties | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zcloud/controller/AppPosiDeviceController.java b/src/main/java/com/zcloud/controller/AppPosiDeviceController.java index 05c2c19..c406ced 100644 --- a/src/main/java/com/zcloud/controller/AppPosiDeviceController.java +++ b/src/main/java/com/zcloud/controller/AppPosiDeviceController.java @@ -165,7 +165,8 @@ public class AppPosiDeviceController { if (parma.containsKey("td1")) { // 如果包含td1,证明1#高炉中控室(上)的CO浓度有值 将一氧化碳的浓度值、所属设备编码(EQUIPMENT_ID)、预警阈值传入方法 dataList.add(saveData(parma.get("td1"), "8eab7aff5585192b028e9592e2a6c6e9", targetAllList, processingBatchId, processingTime)); - } else if (parma.containsKey("t2td1")) { + } + if (parma.containsKey("t2td1")) { dataList.add(saveData(parma.get("t2td1"), "cf0c414e21e0413aac3ac53e53c33058", targetAllList, processingBatchId, processingTime)); } } else if (location.equals("2#高炉中控室")) { @@ -179,7 +180,8 @@ public class AppPosiDeviceController { } else if (location.equals("型钢中控室")) { if (parma.containsKey("td1")) { dataList.add(saveData(parma.get("td1"), "da04c8ae4e7b2bacaafae391a3baa0aa", targetAllList, processingBatchId, processingTime)); - } else if (parma.containsKey("t2td1")) { + } + if (parma.containsKey("t2td1")) { dataList.add(saveData(parma.get("t2td1"), "60ef896d9f6af5705430cf6aa8d52174", targetAllList, processingBatchId, processingTime)); } } else if (location.equals("15万高炉煤气柜中控室")) { diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 9f7fd8b..01475d4 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,4 +1,4 @@ -spring.application.name=integrated_whb_scheduled +spring.application.name=sx_yjb_scheduled server.port=19099 spring.profiles.active=local