From a01e38da76869d3716a7f66233386fd1e8511704 Mon Sep 17 00:00:00 2001 From: "shenjian@fangjia.com" Date: Wed, 8 Feb 2023 17:20:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/BatchTest.java | 4 +++- src/StructuredAddress.java | 9 +++++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/src/BatchTest.java b/src/BatchTest.java index 2b43bef..51bda5b 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" ; @@ -79,6 +79,7 @@ public class BatchTest { addressList.add(structuredAddress.getLat() != null ? String.valueOf(structuredAddress.getLat()) : ""); addressList.add(structuredAddress.getBdLng() != null ? String.valueOf(structuredAddress.getBdLng()) : ""); addressList.add(structuredAddress.getBdLat() != null ? String.valueOf(structuredAddress.getBdLat()) : ""); + addressList.add(structuredAddress.getTips()); dataMap.put(address, addressList); } } catch (Exception ex) { @@ -108,6 +109,7 @@ public class BatchTest { addressList.add(structuredAddress.getLat() != null ? String.valueOf(structuredAddress.getLat()) : ""); addressList.add(structuredAddress.getBdLng() != null ? String.valueOf(structuredAddress.getBdLng()) : ""); addressList.add(structuredAddress.getBdLat() != null ? String.valueOf(structuredAddress.getBdLat()) : ""); + addressList.add(structuredAddress.getTips()); dataMap.put(address, addressList); } } catch (Exception e) { diff --git a/src/StructuredAddress.java b/src/StructuredAddress.java index 4f10446..ae0755f 100644 --- a/src/StructuredAddress.java +++ b/src/StructuredAddress.java @@ -19,6 +19,7 @@ public class StructuredAddress { private Double lat; private String formatAddress; private String addrVerify; + private String tips; public String getProvince() { return province; @@ -171,4 +172,12 @@ public class StructuredAddress { public void setAddrVerify(String addrVerify) { this.addrVerify = addrVerify; } + + public String getTips() { + return tips; + } + + public void setTips(String tips) { + this.tips = tips; + } }