提交 65b1c7fa authored 作者: inroi's avatar inroi

采购订单新增返回字段

上级 bcd4543b
package org.jeecg.common.exception; package org.jeecg.common.exception;
import io.lettuce.core.RedisConnectionException; import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.AuthorizationException; import org.apache.shiro.authz.AuthorizationException;
import org.apache.shiro.authz.UnauthorizedException; import org.apache.shiro.authz.UnauthorizedException;
import org.jeecg.common.api.vo.Result; import org.jeecg.common.api.vo.Result;
...@@ -13,8 +13,6 @@ import org.springframework.web.bind.annotation.RestControllerAdvice; ...@@ -13,8 +13,6 @@ import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.springframework.web.multipart.MaxUploadSizeExceededException; import org.springframework.web.multipart.MaxUploadSizeExceededException;
import org.springframework.web.servlet.NoHandlerFoundException; import org.springframework.web.servlet.NoHandlerFoundException;
import lombok.extern.slf4j.Slf4j;
/** /**
* 异常处理器 * 异常处理器
* *
...@@ -52,11 +50,11 @@ public class JeecgBootExceptionHandler { ...@@ -52,11 +50,11 @@ public class JeecgBootExceptionHandler {
return Result.noauth("没有权限,请联系管理员授权"); return Result.noauth("没有权限,请联系管理员授权");
} }
@ExceptionHandler(Exception.class) /*@ExceptionHandler(Exception.class)
public Result<?> handleException(Exception e){ public Result<?> handleException(Exception e){
log.error(e.getMessage(), e); log.error(e.getMessage(), e);
return Result.error("操作失败,"+e.getMessage()); return Result.error("操作失败,"+e.getMessage());
} }*/
/** /**
* @Author 政辉 * @Author 政辉
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论