字段修改

This commit is contained in:
Jian Shen
2022-08-09 10:05:40 +08:00
parent 5fed004369
commit 25977d397c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ public class BatchTest {
final String type = StringUtils.isEmpty(typeT) ? "1" : typeT;
Map<String, List<String>> dataMap = new ConcurrentHashMap<>();
AtomicLong count = new AtomicLong(0);
String[] headArr = new String[]{"ID", "地址", "省份", "城市", "区域", "乡镇街道", "街道编码", "居委村委", "标准化地址", "是否涉农", "地址验证", "经度", "维度", "百度经度", "百度纬度"};
String[] headArr = new String[]{"ID", "地址", "省份", "城市", "区域", "乡镇街道", "街道编码", "居委村委", "标准化地址", "是否涉农", "地址验证", "经度", "纬度", "百度经度", "百度纬度"};
List<List<String>> head = this.formatHead(headArr);
// 默认两行数据
String aimFilePath = file.substring(0, file.lastIndexOf(".xlsx")) + "结果" + DateUtils.format(new Date(), "yyyyMMddHHmm") + ".xlsx" ;
+1 -1
View File
@@ -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<JSONObject> apiResponse = JSONObject.parseObject(response, FangJiaApiResponse.class);
if (FangJiaApiResponse.ok().getStatus() == apiResponse.getStatus()) {
List<String> addressList = new ArrayList<>();