|
@@ -197,9 +197,14 @@ public class Checker {
|
|
|
}
|
|
|
|
|
|
public static boolean isNull(Object obj) {
|
|
|
- return obj == null;
|
|
|
+ return obj == null || obj.equals("");
|
|
|
}
|
|
|
|
|
|
+ public static boolean isNull(String str) {
|
|
|
+ if (str == null || str.equals("") || str.trim().length() == 0 || str.equals("null"))
|
|
|
+ return true;
|
|
|
+ return false;
|
|
|
+ }
|
|
|
/**
|
|
|
* bigDecimal 转 int 型,放大100倍
|
|
|
*
|