public static void notNull(Object object, ErrorEnum error) {
if (object == null) {
throw new ServiceException(error.getCode(), error.getMsg());
}
}
微信扫一扫
public static void notNull(Object object, ErrorEnum error) {
if (object == null) {
throw new ServiceException(error.getCode(), error.getMsg());
}
}
相关推荐