新增提示

This commit is contained in:
shenjian@fangjia.com
2023-02-08 17:20:30 +08:00
parent 84841a2920
commit a01e38da76
2 changed files with 12 additions and 1 deletions
+3 -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" ;
@@ -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) {
+9
View File
@@ -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;
}
}