3 Commits

Author SHA1 Message Date
zsh
d88459e932 Pre Merge pull request !407 from zsh/N/A 2025-04-28 03:21:09 +00:00
RuoYi
57fe1c663e 优化Excel匹配数值型.0结尾 2025-04-28 11:20:48 +08:00
zsh
18bbbcd6db update ruoyi-auth/src/main/resources/bootstrap.yml.
Signed-off-by: zsh <15628347+zsh112681@user.noreply.gitee.com>
2025-04-26 03:51:06 +00:00
2 changed files with 3 additions and 3 deletions

View File

@@ -14,10 +14,10 @@ spring:
nacos:
discovery:
# 服务注册地址
server-addr: 127.0.0.1:8848
server-addr: nacos:8848
config:
# 配置中心地址
server-addr: 127.0.0.1:8848
server-addr: nacos:8848
# 配置文件格式
file-extension: yml
# 共享配置

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");
}