Compare commits

..

1 Commits

Author SHA1 Message Date
柳翼 8294196fdb
Pre Merge pull request !405 from 柳翼/master 2025-04-27 03:56:37 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -390,7 +390,7 @@ public class ExcelUtil<T>
if (String.class == fieldType)
{
String s = Convert.toStr(val);
if (s.matches("^\\d+\\.0$"))
if (StringUtils.endsWith(s, ".0"))
{
val = StringUtils.substringBefore(s, ".0");
}