mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-31 22:11:57 +08:00
Compare commits
2 Commits
a57279784e
...
dd34a7b311
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
dd34a7b311 | ||
|
|
a36e19d88e |
@@ -390,7 +390,7 @@ public class ExcelUtil<T>
|
||||
if (String.class == fieldType)
|
||||
{
|
||||
String s = Convert.toStr(val);
|
||||
if (StringUtils.endsWith(s, ".0"))
|
||||
if (s.matches("^\\d+\\.0$"))
|
||||
{
|
||||
val = StringUtils.substringBefore(s, ".0");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user