|
@@ -21,20 +21,20 @@ public class AssertUtil {
|
|
|
**/
|
|
|
public static void isNotBlank(Object object,String message){
|
|
|
if (object == null) {
|
|
|
- throw new BizException(message,-1);
|
|
|
+ throw new BizException(message,R.ERR_CODE);
|
|
|
}
|
|
|
else if (object instanceof Collection) {
|
|
|
if(CollUtil.isEmpty((Collection)object)){
|
|
|
- throw new BizException(message,-1);
|
|
|
+ throw new BizException(message,R.ERR_CODE);
|
|
|
}
|
|
|
}
|
|
|
else if (object instanceof Map) {
|
|
|
if(CollUtil.isEmpty((Map)object)){
|
|
|
- throw new BizException(message,-1);
|
|
|
+ throw new BizException(message,R.ERR_CODE);
|
|
|
}
|
|
|
}else {
|
|
|
if (StrUtil.isBlank(object.toString())) {
|
|
|
- throw new BizException(message,-1);
|
|
|
+ throw new BizException(message,R.ERR_CODE);
|
|
|
}
|
|
|
}
|
|
|
}
|