| | |
| | | this.pointId = po.getCd(); |
| | | this.type = type; |
| | | |
| | | if (this.type == "1"){ |
| | | if (type.equals( "1")){ |
| | | //渗压 |
| | | this.value = po.getSw_val(); |
| | | }else if (this.type == "2"){ |
| | | }else if (type.equals("2")){ |
| | | //渗流 |
| | | }else if (this.type == "3"){ |
| | | }else if (type.equals("3")){ |
| | | //x |
| | | this.value = po.getDe(); |
| | | }else if (this.type == "4"){ |
| | | }else if (type.equals("4")){ |
| | | //y |
| | | this.value = po.getDn(); |
| | | }else if (this.type == "5"){ |
| | | }else if (type.equals("5")){ |
| | | //z |
| | | this.value = po.getDu(); |
| | | } |
| | | this.time = po.getTm(); |
| | | this.damName = po.getRes_nm(); |
| | | } |
| | | } |
| | |
| | | List<BDDataPo> list = new ArrayList<>(); |
| | | dataResPo.getChildren().forEach(dataResChildrenPo -> { |
| | | BDDataPo bdDataPo = new BDDataPo(dataResChildrenPo,type); |
| | | if (type == "1"){ |
| | | if (type.equals("1") ){ |
| | | //渗压 |
| | | if (dataResChildrenPo.getIs_main_cd().equals("y")){ |
| | | PredictWatersPo waters = new PredictWatersPo(dataResChildrenPo.getTm(),dataResChildrenPo.getSw_val(),dataResChildrenPo.getRes_cd()); |
| | |
| | | headers.add("Accept", MediaType.APPLICATION_JSON.toString()); |
| | | |
| | | HttpEntity<String> httpEntity = new HttpEntity(jsonparams, headers); |
| | | |
| | | System.out.println("请求参数:"+ jsonparams); |
| | | RestTemplate template = new RestTemplate(); |
| | | String resultStr = template.postForObject(url, httpEntity, String.class); |
| | | System.out.println(resultStr); |