Browse Source

边坡监测事件接入

develop
lau572 1 month ago
parent
commit
575b2a21b2
  1. 6
      zc-business/src/main/java/com/zc/business/controller/SideSlopeController.java

6
zc-business/src/main/java/com/zc/business/controller/SideSlopeController.java

@ -109,11 +109,11 @@ public class SideSlopeController extends BaseController {
String timeStr = simpleDateFormat.format(warningTime);
String direction = jsonObject.getString("direction").equals("1") ? "菏泽方向" : "济南方向";
String warningLevel = "";
if (jsonObject.getString("direction").equals("1")){
if (jsonObject.getString("warningLevel").equals("1")){
warningLevel = "黄色预警";
} else if (jsonObject.getString("direction").equals("2")){
} else if (jsonObject.getString("warningLevel").equals("2")){
warningLevel = "橙色预警";
} else if (jsonObject.getString("direction").equals("3")){
} else if (jsonObject.getString("warningLevel").equals("3")){
warningLevel = "红色预警";
}
JSONObject warningValueInfo = jsonObject.getJSONObject("warningValueInfo");

Loading…
Cancel
Save