|
|
@@ -28,16 +28,18 @@ public class ExcelBigNumberConvert implements Converter<Long> {
|
|
|
|
|
|
@Override
|
|
|
public CellDataTypeEnum supportExcelTypeKey() {
|
|
|
- return CellDataTypeEnum.STRING;
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public Long convertToJavaData(ReadCellData<?> cellData, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) {
|
|
|
+ public Long convertToJavaData(ReadCellData<?> cellData, ExcelContentProperty contentProperty,
|
|
|
+ GlobalConfiguration globalConfiguration) {
|
|
|
return Convert.toLong(cellData.getData());
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public WriteCellData<Object> convertToExcelData(Long object, ExcelContentProperty contentProperty, GlobalConfiguration globalConfiguration) {
|
|
|
+ public WriteCellData<Object> convertToExcelData(Long object, ExcelContentProperty contentProperty,
|
|
|
+ GlobalConfiguration globalConfiguration) {
|
|
|
if (ObjectUtil.isNotNull(object)) {
|
|
|
String str = Convert.toStr(object);
|
|
|
if (str.length() > 15) {
|