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
22f7ccc1
Commit
22f7ccc1
authored
Mar 05, 2022
by
RuoYi
Browse files
修复导入Excel时字典字段类型为Long转义为空问题
parent
cb8f5de5
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-common/src/main/java/com/ruoyi/common/utils/poi/ExcelUtil.java
View file @
22f7ccc1
...
...
@@ -328,7 +328,7 @@ public class ExcelUtil<T>
{
val
=
Convert
.
toInt
(
val
);
}
else
if
(
Long
.
TYPE
==
fieldType
||
Long
.
class
==
fieldType
)
else
if
(
(
Long
.
TYPE
==
fieldType
||
Long
.
class
==
fieldType
)
&&
StringUtils
.
isNumeric
(
Convert
.
toStr
(
val
)))
{
val
=
Convert
.
toLong
(
val
);
}
...
...
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