GlobalExceptionHandler.handleServiceException 多余的类型转换。

Signed-off-by: scmiot <scmiot@qq.com>
feature/model
scmiot 2 years ago committed by Gitee
parent a6bed384d7
commit 83395d4e2f
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -105,7 +105,7 @@ public class GlobalExceptionHandler {
public R<Void> handleServiceException(ServiceException e, HttpServletRequest request) {
log.error(e.getMessage(), e);
Integer code = e.getCode();
return ObjectUtil.isNotNull(code) ? R.fail(code.intValue(), e.getMessage()) : R.fail(e.getMessage());
return ObjectUtil.isNotNull(code) ? R.fail(code, e.getMessage()) : R.fail(e.getMessage());
}
/**

Loading…
Cancel
Save