|
@@ -201,8 +201,9 @@ public class ExcelUtil<T>
|
|
|
|
|
|
field.setAccessible(true);
|
|
|
Integer column = cellMap.get(attr.name());
|
|
|
- if(column !=null ) {
|
|
|
- fieldsMap.put(column, field);
|
|
|
+ if (column != null)
|
|
|
+ {
|
|
|
+ fieldsMap.put(column, field);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -695,7 +696,7 @@ public class ExcelUtil<T>
|
|
|
}
|
|
|
return StringUtils.stripEnd(propertyString.toString(), separator);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
* 解析字典值
|
|
|
*
|
|
@@ -897,15 +898,7 @@ public class ExcelUtil<T>
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
-
|
|
|
- {
|
|
|
- val = new DecimalFormat("0.00").format(val);
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- val = new DecimalFormat("0").format(val);
|
|
|
- }*/
|
|
|
- val = new BigDecimal(val.toString());
|
|
|
+ val = new BigDecimal(val.toString());
|
|
|
}
|
|
|
}
|
|
|
else if (cell.getCellTypeEnum() == CellType.STRING)
|