Commit f47326ac9430aa746118229915f72a24a38bde6c

Authored by ljq
1 parent 41e4a388

调度预案配置

src/main/java/com/bsth/data/zndd/AutomaticSch.java
... ... @@ -456,8 +456,11 @@ public class AutomaticSch {
456 456 Map<String, Object> jsonMap = JSON.parseObject(zn.getJsonDate(), new TypeReference<HashMap<String, Object>>() {});
457 457  
458 458 String typetext = jsonMap.get("type").toString();
459   - if(type.equals("pz")){
460   - return typetext;
  459 + List<Map> listnodes = (List<Map>) jsonMap.get("nodes");
  460 + if(typetext.equals("pz")){
  461 + if(listnodes.get(1) != null){
  462 + return listnodes.get(1).get("value").toString();
  463 + }
461 464 }
462 465 }
463 466 return null;
... ...