refactor(controller): 调整设备数据处理逻辑- 修改 AppPosiDeviceController 中的条件判断结构

- 将 else if 替换为独立的 if 判断提高代码可读性- 保持数据保存逻辑不变,优化控制流结构
dev
wangyan 2025-10-10 16:30:26 +08:00
parent e875693d8c
commit a5d84287cf
2 changed files with 5 additions and 3 deletions

View File

@ -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万高炉煤气柜中控室")) {

View File

@ -1,4 +1,4 @@
spring.application.name=integrated_whb_scheduled
spring.application.name=sx_yjb_scheduled
server.port=19099
spring.profiles.active=local