From 25977d397cb9400ef05b37f04d05d02514bfa23c Mon Sep 17 00:00:00 2001 From: Jian Shen Date: Tue, 9 Aug 2022 10:05:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BatchTest.java | 2 +- src/MatchTest.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/BatchTest.java b/src/BatchTest.java index 9447ffc..2b43bef 100644 --- a/src/BatchTest.java +++ b/src/BatchTest.java @@ -33,7 +33,7 @@ public class BatchTest { final String type = StringUtils.isEmpty(typeT) ? "1" : typeT; Map> dataMap = new ConcurrentHashMap<>(); AtomicLong count = new AtomicLong(0); - String[] headArr = new String[]{"ID", "地址", "省份", "城市", "区域", "乡镇街道", "街道编码", "居委村委", "标准化地址", "是否涉农", "地址验证", "经度", "维度", "百度经度", "百度纬度"}; + String[] headArr = new String[]{"ID", "地址", "省份", "城市", "区域", "乡镇街道", "街道编码", "居委村委", "标准化地址", "是否涉农", "地址验证", "经度", "纬度", "百度经度", "百度纬度"}; List> head = this.formatHead(headArr); // 默认两行数据 String aimFilePath = file.substring(0, file.lastIndexOf(".xlsx")) + "结果" + DateUtils.format(new Date(), "yyyyMMddHHmm") + ".xlsx" ; diff --git a/src/MatchTest.java b/src/MatchTest.java index 7b72ccb..f96d6a4 100644 --- a/src/MatchTest.java +++ b/src/MatchTest.java @@ -62,7 +62,7 @@ public class MatchTest { final String address = addressTemp; executorService.submit(() -> { try { - String response = restTemplate.getForObject("http://" + ip + "/FangJiaAddressService/match?address={address}&city=重庆市", String.class, address); + String response = restTemplate.getForObject("http://" + ip + "/FangJiaAddressService/match?address={address}", String.class, address); FangJiaApiResponse apiResponse = JSONObject.parseObject(response, FangJiaApiResponse.class); if (FangJiaApiResponse.ok().getStatus() == apiResponse.getStatus()) { List addressList = new ArrayList<>();