新客立减获取减免金额方法
This commit is contained in:
@@ -77,6 +77,12 @@ public class AssertUtil {
|
||||
public static void isNull(Object object, String errorMsgTemplate, Object... params) {
|
||||
isNull(object, StrUtil.format(errorMsgTemplate, params));
|
||||
}
|
||||
public static void isTrue(boolean flag, String errorMsgTemplate, Object... params) {
|
||||
if (flag) {
|
||||
throw new ValidateException(StrUtil.format(errorMsgTemplate, params));
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查数组是否不为空,如果为空则抛出异常
|
||||
*
|
||||
@@ -150,4 +156,6 @@ public class AssertUtil {
|
||||
public static <K, V> void isMapEmpty(Map<K, V> map, String errorMsgTemplate, Object... params) {
|
||||
isMapEmpty(map, StrUtil.format(errorMsgTemplate, params));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user