Commit 6e4eec01 by ghxdhr

修改判断是否小数的bug,包括小数和负数

parent ad723cb8
......@@ -260,7 +260,7 @@ public class SingleSheetMoreItemOperation implements Operation {
if (StringUtils.isEmpty(value)) {
return false;
}
if (!NumberUtils.isDigits(value)) {
if (!StringHandleUtils.validateNumber(value)) {
cell.setCellValue("");
return false;
}
......
......@@ -281,7 +281,7 @@ public class SingleSheetMoreOperation implements Operation {
if (StringUtils.isEmpty(value)) {
return false;
}
if (!NumberUtils.isDigits(value)) {
if (!StringHandleUtils.validateNumber(value)) {
cell.setCellValue("");
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment