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