opt:优化

This commit is contained in:
DESKTOP-5DIJMF9\admin
2025-04-08 13:29:01 +08:00
parent 1989875570
commit 8c68d87d74

View File

@@ -139,6 +139,7 @@ public class BakingServiceImpl implements BakingService {
jsonMap.put("point_location", jsonPointZc.getString("point_location"));
JSONArray hot_rows = WQL.getWO("PDA_BAKING_01").addParamMap(jsonMap).process().getResultJSONArray(0);
JSONObject jsonHotIvt = new JSONObject();
log.debug("获取温度幅度hot_rows:"+hot_rows);
for (int i = 0; i < hot_rows.size(); i++) {
JSONObject hot_row = hot_rows.getJSONObject(i);
String point_code = hot_row.getString("point_code");
@@ -150,6 +151,7 @@ public class BakingServiceImpl implements BakingService {
if (ObjectUtil.isNotEmpty(point_temperature)) {
if (point_temperature.equals(temperature)) {
jsonHotIvt = hot_row;
log.debug("获取满足温度幅度jsonHotIvt:"+jsonHotIvt);
break;
}
}