| | |
| | | public BDDataPo(DataResChildrenPo po,String type){ |
| | | this.damId = po.getRes_cd(); |
| | | this.pointId = po.getCd(); |
| | | this.pointName = "测点"+po.getCd(); |
| | | this.pointName = po.getCd_nm(); |
| | | this.type = type; |
| | | |
| | | if (type.equals( "1")){ |
| | |
| | | |
| | | private String res_reg_code; |
| | | private String cd;// 测站编码 |
| | | private String cd_nm;//测站名称 |
| | | |
| | | private String tm; |
| | | private String res_cd; // 水库编码 |
| | |
| | | headers.set("apikey",API_KEY); |
| | | |
| | | HttpEntity<String> httpEntity = new HttpEntity(null, headers); |
| | | |
| | | log.info("中台请求地址:{}", url); |
| | | RestTemplate template = new RestTemplate(); |
| | | ResponseEntity<ZtResultPo> ztResultPojoResponseEntity = template.exchange(url, method,httpEntity, ZtResultPo.class,params); |
| | | if (ztResultPojoResponseEntity.getStatusCodeValue() == 200) { |