Compare commits

..

2 Commits

Author SHA1 Message Date
柳翼 97969cdf83
Pre Merge pull request !405 from 柳翼/master 2025-04-28 03:21:09 +00:00
RuoYi 57fe1c663e 优化Excel匹配数值型.0结尾 2025-04-28 11:20:48 +08: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 (StringUtils.endsWith(s, ".0"))
if (s.matches("^\\d+\\.0$"))
{
val = StringUtils.substringBefore(s, ".0");
}