修正部分参数
This commit is contained in:
@ -731,4 +731,24 @@ public class StringUtils extends org.apache.commons.lang3.StringUtils
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static Long getLong(Object s){
|
||||
|
||||
try {
|
||||
return Long.parseLong(s.toString());
|
||||
} catch (NumberFormatException e) {
|
||||
return Long.parseLong("0");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static String getString(Object s){
|
||||
|
||||
try {
|
||||
return String.valueOf(s);
|
||||
} catch (NumberFormatException e) {
|
||||
return "0";
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user