|
@@ -139,7 +139,6 @@ public class LogAspect
|
|
|
|
|
|
|
|
operLog.setOperUrl(ServletUtils.getRequest().getRequestURI());
|
|
operLog.setOperUrl(ServletUtils.getRequest().getRequestURI());
|
|
|
operLog.setOperName(username);
|
|
operLog.setOperName(username);
|
|
|
-
|
|
|
|
|
if (e != null)
|
|
if (e != null)
|
|
|
{
|
|
{
|
|
|
operLog.setStatus(BusinessStatus.FAIL.ordinal());
|
|
operLog.setStatus(BusinessStatus.FAIL.ordinal());
|
|
@@ -149,6 +148,7 @@ public class LogAspect
|
|
|
String className = joinPoint.getTarget().getClass().getName();
|
|
String className = joinPoint.getTarget().getClass().getName();
|
|
|
String methodName = joinPoint.getSignature().getName();
|
|
String methodName = joinPoint.getSignature().getName();
|
|
|
operLog.setMethod(className + "." + methodName + "()");
|
|
operLog.setMethod(className + "." + methodName + "()");
|
|
|
|
|
+ operLog.setTenantId(Long.parseLong(ServletUtils.getRequest().getHeader("TenantId")));
|
|
|
// 设置请求方式
|
|
// 设置请求方式
|
|
|
operLog.setRequestMethod(ServletUtils.getRequest().getMethod());
|
|
operLog.setRequestMethod(ServletUtils.getRequest().getMethod());
|
|
|
// 处理设置注解上的参数
|
|
// 处理设置注解上的参数
|