Commit cba212ccb150981be5f18b9ea1bd5b6516acd75e

Authored by 王富生
1 parent 6a73a04d

提交

src/main/java/com/zteits/oa/api/base/bean/BizResult.java
@@ -39,7 +39,7 @@ public class BizResult<T> extends ResultBean<ErrorCode, T>{ @@ -39,7 +39,7 @@ public class BizResult<T> extends ResultBean<ErrorCode, T>{
39 39
40 public BizResult(T data) { 40 public BizResult(T data) {
41 super(data); 41 super(data);
42 - this.errCode=ErrorType.BIZ_SUCCESS.getCode(); 42 + this.code=ErrorType.BIZ_SUCCESS.getCode();
43 this.errMsg = ErrorType.BIZ_SUCCESS.getMsg(); 43 this.errMsg = ErrorType.BIZ_SUCCESS.getMsg();
44 44
45 } 45 }
@@ -49,7 +49,7 @@ public class BizResult<T> extends ResultBean<ErrorCode, T>{ @@ -49,7 +49,7 @@ public class BizResult<T> extends ResultBean<ErrorCode, T>{
49 } 49 }
50 50
51 public void setErrorInfo(ErrorType errType, String errMsg){ 51 public void setErrorInfo(ErrorType errType, String errMsg){
52 - this.errCode = errType.getCode(); 52 + this.code = errType.getCode();
53 this.errMsg = errMsg; 53 this.errMsg = errMsg;
54 this.success = false; 54 this.success = false;
55 } 55 }