Browse Source

雷达

develop
王兴琳 4 weeks ago
parent
commit
753085fe08
  1. 4
      zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

4
zc-business/src/main/java/com/zc/business/service/impl/DcWarningServiceImpl.java

@ -1158,6 +1158,10 @@ public class DcWarningServiceImpl implements IDcWarningService {
JsonNode roocallPostApiGetRegionstNode = objectMapper.readTree(callPostApiGetRegions); JsonNode roocallPostApiGetRegionstNode = objectMapper.readTree(callPostApiGetRegions);
JsonNode jsonNode = roocallPostApiGetRegionstNode.get("data"); JsonNode jsonNode = roocallPostApiGetRegionstNode.get("data");
JsonNode jsonNodelist = jsonNode.get("list"); JsonNode jsonNodelist = jsonNode.get("list");
if (jsonNodelist.isEmpty()){
return "";
}
JsonNode code = jsonNodelist.get(UniversalEnum.ZERO.getNumber()).get("cameraIndexCode"); JsonNode code = jsonNodelist.get(UniversalEnum.ZERO.getNumber()).get("cameraIndexCode");
// 使用 textValue() 方法获取纯字符串 // 使用 textValue() 方法获取纯字符串
String codestring = code.textValue(); String codestring = code.textValue();

Loading…
Cancel
Save