@ApiOperation("天眼查询企业信息列表")@GetMapping("/getTianYan")public AjaxResult getTianYan(String charMa, String keyword) {Map<String, Object> map = new HashMap<>();HttpHeaders headers = new HttpHeaders();headers.add("Authorization", "da1ada89-5315-4ae6-9ac8-584038f3df60");RestTemplate restTemplate = getRestTemplate();HttpEntity<Map<String, Object>> httpEntity = new HttpEntity<>(map, headers);String params = "?word=" + keyword + "&pageSize=20&pageNum=1";ResponseEntity<JSONObject> responseEntity = restTemplate.exchange("http://open.api.tianyancha.com/services/open/search/2.0" + params, HttpMethod.GET,httpEntity, JSONObject.class);JSONObject body = JSONObject.parseObject(responseEntity.getBody() + "");return AjaxResult.success("成功", body);}@ApiOperation("天眼查询企业信息详情")@GetMapping("/getTianYanDetail")public AjaxResult getCompanyInfo(String keyword) {if (StringUtils.isBlank(keyword)) {return AjaxResult.success("获取成功", "");}Map<String, Object> map = new HashMap<>();HttpHeaders headers = new HttpHeaders();headers.add("Authorization", "da1ada89-5315-4ae6-9ac8-584038f3df60");RestTemplate restTemplate = getRestTemplate();HttpEntity<Map<String, Object>> httpEntity = new HttpEntity<>(map, headers);String params = "?keyword=" + keyword;ResponseEntity<JSONObject> responseEntity = restTemplate.exchange("http://open.api.tianyancha.com/services/open/ic/baseinfo/normal" + params, HttpMethod.GET,httpEntity, JSONObject.class);JSONObject body = JSONObject.parseObject(responseEntity.getBody() + "");return AjaxResult.success("获取成功", body);}