|
@@ -48,7 +48,9 @@ public class ExcelUtil {
|
|
|
continue;
|
|
|
}
|
|
|
if(cell != null){
|
|
|
- String value = fommartNum(cell.toString().trim());
|
|
|
+ DataFormatter formatter = new DataFormatter();
|
|
|
+ String phoneNumber = formatter.formatCellValue(cell);
|
|
|
+ String value = fommartNum(phoneNumber.trim());
|
|
|
map.put(cellNum,value);
|
|
|
}
|
|
|
|
|
@@ -65,7 +67,6 @@ public class ExcelUtil {
|
|
|
private static String fommartNum(String value){
|
|
|
try {
|
|
|
if(isNumeric2(value) && value.contains(".")){
|
|
|
- log.info("fommartNum:{}",value);
|
|
|
return Double.valueOf(value).intValue() +"";
|
|
|
}
|
|
|
}catch (Exception e){
|