Commit f6d83c32 by 杨伟程

[200~平台端-告警中心-告警配置:所属组织搜索无效~

parent 0958f32d
...@@ -7,8 +7,11 @@ import java.math.RoundingMode; ...@@ -7,8 +7,11 @@ import java.math.RoundingMode;
public class MathUtil { public class MathUtil {
public static Integer stringToInteger(String s) { public static Integer stringToInteger(Object s) {
if (StringUtils.isBlank(s)) { if (s instanceof String && StringUtils.isBlank((String) s)) {
return null;
}
if (s == null) {
return null; return null;
} }
return Integer.valueOf(s + ""); return Integer.valueOf(s + "");
......
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 sign in to comment