diff --git a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java index d101d96f8..1fe16e20c 100644 --- a/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java +++ b/ruoyi-common/ruoyi-common-core/src/main/java/com/ruoyi/common/core/domain/R.java @@ -103,13 +103,13 @@ public void setData(T data) this.data = data; } - public Boolean isError() + public static Boolean isError(R ret) { - return !isSuccess(); + return !isSuccess(ret); } - public Boolean isSuccess() + public static Boolean isSuccess(R ret) { - return R.SUCCESS == getCode(); + return R.SUCCESS == ret.getCode(); } }