Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
33793d8e
Commit
33793d8e
authored
Sep 09, 2020
by
RuoYi
Browse files
Excel导出类型NUMERIC支持精度浮点类型
parent
96529069
Changes
1
Show whitespace changes
Inline
Side-by-side
ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java
View file @
33793d8e
...
...
@@ -503,7 +503,7 @@ public class ExcelUtil<T>
else
if
(
ColumnType
.
NUMERIC
==
attr
.
cellType
())
{
cell
.
setCellType
(
CellType
.
NUMERIC
);
cell
.
setCellValue
(
Integer
.
parseInt
(
value
+
""
));
cell
.
setCellValue
(
StringUtils
.
contains
(
Convert
.
toStr
(
value
),
"."
)
?
Convert
.
toDouble
(
value
)
:
Convert
.
toInt
(
value
));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment