新增提示
This commit is contained in:
+3
-1
@@ -33,7 +33,7 @@ public class BatchTest {
|
|||||||
final String type = StringUtils.isEmpty(typeT) ? "1" : typeT;
|
final String type = StringUtils.isEmpty(typeT) ? "1" : typeT;
|
||||||
Map<String, List<String>> dataMap = new ConcurrentHashMap<>();
|
Map<String, List<String>> dataMap = new ConcurrentHashMap<>();
|
||||||
AtomicLong count = new AtomicLong(0);
|
AtomicLong count = new AtomicLong(0);
|
||||||
String[] headArr = new String[]{"ID", "地址", "省份", "城市", "区域", "乡镇街道", "街道编码", "居委村委", "标准化地址", "是否涉农", "地址验证", "经度", "纬度", "百度经度", "百度纬度"};
|
String[] headArr = new String[]{"ID", "地址", "省份", "城市", "区域", "乡镇街道", "街道编码", "居委村委", "标准化地址", "是否涉农", "地址验证", "经度", "纬度", "百度经度", "百度纬度", "提示"};
|
||||||
List<List<String>> head = this.formatHead(headArr);
|
List<List<String>> head = this.formatHead(headArr);
|
||||||
// 默认两行数据
|
// 默认两行数据
|
||||||
String aimFilePath = file.substring(0, file.lastIndexOf(".xlsx")) + "结果" + DateUtils.format(new Date(), "yyyyMMddHHmm") + ".xlsx" ;
|
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.getLat() != null ? String.valueOf(structuredAddress.getLat()) : "");
|
||||||
addressList.add(structuredAddress.getBdLng() != null ? String.valueOf(structuredAddress.getBdLng()) : "");
|
addressList.add(structuredAddress.getBdLng() != null ? String.valueOf(structuredAddress.getBdLng()) : "");
|
||||||
addressList.add(structuredAddress.getBdLat() != null ? String.valueOf(structuredAddress.getBdLat()) : "");
|
addressList.add(structuredAddress.getBdLat() != null ? String.valueOf(structuredAddress.getBdLat()) : "");
|
||||||
|
addressList.add(structuredAddress.getTips());
|
||||||
dataMap.put(address, addressList);
|
dataMap.put(address, addressList);
|
||||||
}
|
}
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
@@ -108,6 +109,7 @@ public class BatchTest {
|
|||||||
addressList.add(structuredAddress.getLat() != null ? String.valueOf(structuredAddress.getLat()) : "");
|
addressList.add(structuredAddress.getLat() != null ? String.valueOf(structuredAddress.getLat()) : "");
|
||||||
addressList.add(structuredAddress.getBdLng() != null ? String.valueOf(structuredAddress.getBdLng()) : "");
|
addressList.add(structuredAddress.getBdLng() != null ? String.valueOf(structuredAddress.getBdLng()) : "");
|
||||||
addressList.add(structuredAddress.getBdLat() != null ? String.valueOf(structuredAddress.getBdLat()) : "");
|
addressList.add(structuredAddress.getBdLat() != null ? String.valueOf(structuredAddress.getBdLat()) : "");
|
||||||
|
addressList.add(structuredAddress.getTips());
|
||||||
dataMap.put(address, addressList);
|
dataMap.put(address, addressList);
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ public class StructuredAddress {
|
|||||||
private Double lat;
|
private Double lat;
|
||||||
private String formatAddress;
|
private String formatAddress;
|
||||||
private String addrVerify;
|
private String addrVerify;
|
||||||
|
private String tips;
|
||||||
|
|
||||||
public String getProvince() {
|
public String getProvince() {
|
||||||
return province;
|
return province;
|
||||||
@@ -171,4 +172,12 @@ public class StructuredAddress {
|
|||||||
public void setAddrVerify(String addrVerify) {
|
public void setAddrVerify(String addrVerify) {
|
||||||
this.addrVerify = addrVerify;
|
this.addrVerify = addrVerify;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public String getTips() {
|
||||||
|
return tips;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTips(String tips) {
|
||||||
|
this.tips = tips;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user