3 Commits

Author SHA1 Message Date
mashuo
dd34a7b311 Pre Merge pull request !402 from mashuo/springboot3 2025-04-28 03:22:19 +00:00
RuoYi
a36e19d88e 优化Excel匹配数值型.0结尾 2025-04-28 11:22:04 +08:00
mashuo
245e0b76f9 fix: 代码生成javax替换为jakarta 2025-03-31 01:17:21 +00:00
2 changed files with 2 additions and 2 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");
}

View File

@@ -2,7 +2,7 @@ package ${packageName}.controller;
import java.util.List;
import java.io.IOException;
import javax.servlet.http.HttpServletResponse;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;