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; + } }