Commit cba212ccb150981be5f18b9ea1bd5b6516acd75e
1 parent
6a73a04d
提交
Showing
1 changed file
with
2 additions
and
2 deletions
src/main/java/com/zteits/oa/api/base/bean/BizResult.java
| ... | ... | @@ -39,7 +39,7 @@ public class BizResult<T> extends ResultBean<ErrorCode, T>{ |
| 39 | 39 | |
| 40 | 40 | public BizResult(T data) { |
| 41 | 41 | super(data); |
| 42 | - this.errCode=ErrorType.BIZ_SUCCESS.getCode(); | |
| 42 | + this.code=ErrorType.BIZ_SUCCESS.getCode(); | |
| 43 | 43 | this.errMsg = ErrorType.BIZ_SUCCESS.getMsg(); |
| 44 | 44 | |
| 45 | 45 | } |
| ... | ... | @@ -49,7 +49,7 @@ public class BizResult<T> extends ResultBean<ErrorCode, T>{ |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | 51 | public void setErrorInfo(ErrorType errType, String errMsg){ |
| 52 | - this.errCode = errType.getCode(); | |
| 52 | + this.code = errType.getCode(); | |
| 53 | 53 | this.errMsg = errMsg; |
| 54 | 54 | this.success = false; |
| 55 | 55 | } | ... | ... |