Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
苏木力格
easyexcel
提交
b8a3bb82
E
easyexcel
项目概览
苏木力格
/
easyexcel
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
E
easyexcel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
b8a3bb82
编写于
5月 13, 2021
作者:
是
是仪
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
* 修复读取的时候用string接收数字 可能四舍五入不一致的bug
上级
5a8d3f5b
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
6 addition
and
3 deletion
+6
-3
pom.xml
pom.xml
+1
-1
src/main/java/com/alibaba/excel/analysis/v07/handlers/AbstractCellValueTagHandler.java
...el/analysis/v07/handlers/AbstractCellValueTagHandler.java
+1
-1
src/test/java/com/alibaba/easyexcel/test/temp/Lock2Test.java
src/test/java/com/alibaba/easyexcel/test/temp/Lock2Test.java
+1
-1
src/test/resources/dataformat/dataformat.xls
src/test/resources/dataformat/dataformat.xls
+0
-0
src/test/resources/dataformat/dataformat.xlsx
src/test/resources/dataformat/dataformat.xlsx
+0
-0
update.md
update.md
+3
-0
未找到文件。
pom.xml
浏览文件 @
b8a3bb82
...
...
@@ -4,7 +4,7 @@
<modelVersion>
4.0.0
</modelVersion>
<groupId>
com.alibaba
</groupId>
<artifactId>
easyexcel
</artifactId>
<version>
2.2.
9
</version>
<version>
2.2.
10
</version>
<packaging>
jar
</packaging>
<name>
easyexcel
</name>
...
...
src/main/java/com/alibaba/excel/analysis/v07/handlers/AbstractCellValueTagHandler.java
浏览文件 @
b8a3bb82
...
...
@@ -43,7 +43,7 @@ public abstract class AbstractCellValueTagHandler extends AbstractXlsxTagHandler
break
;
}
tempCellData
.
setType
(
CellDataTypeEnum
.
NUMBER
);
tempCellData
.
setNumberValue
(
new
BigDecimal
(
tempData
.
toString
(
)));
tempCellData
.
setNumberValue
(
BigDecimal
.
valueOf
(
Double
.
parseDouble
(
tempDataString
)));
break
;
default
:
throw
new
IllegalStateException
(
"Cannot set values now"
);
...
...
src/test/java/com/alibaba/easyexcel/test/temp/Lock2Test.java
浏览文件 @
b8a3bb82
...
...
@@ -34,7 +34,7 @@ public class Lock2Test {
@Test
public
void
test
()
throws
Exception
{
// File file = TestFileUtil.readUserHomeFile("test/test6.xls");
File
file
=
new
File
(
"/Users/zhuangjiaju/
Downloads/签到金模板-0507-v3
.xlsx"
);
File
file
=
new
File
(
"/Users/zhuangjiaju/
test/签到金模板-0507-v5
.xlsx"
);
List
<
Object
>
list
=
EasyExcel
.
read
(
file
).
sheet
(
0
).
headRowNumber
(
0
).
doReadSync
();
LOGGER
.
info
(
"数据:{}"
,
list
.
size
());
...
...
src/test/resources/dataformat/dataformat.xls
浏览文件 @
b8a3bb82
无法预览此类型文件
src/test/resources/dataformat/dataformat.xlsx
浏览文件 @
b8a3bb82
无法预览此类型文件
update.md
浏览文件 @
b8a3bb82
# 2.2.10
*
修复读取的时候用string接收数字 可能四舍五入不一致的bug
# 2.2.9
*
修复读取的时候用string接收数字 可能四舍五入不一致的bug
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录