Explorar el Código

Merge branch 'master' of http://124.70.58.209:3000/ytrd-project-management/BaseMonitor

gao.qiang hace 2 años
padre
commit
57d50df661

+ 4 - 2
base-framework/src/main/java/com/ozs/framework/aspectj/LogAspect.java

@@ -4,6 +4,8 @@ import java.util.Collection;
 import java.util.Map;
 import javax.servlet.http.HttpServletRequest;
 import javax.servlet.http.HttpServletResponse;
+
+import com.ozs.common.constant.Constants;
 import org.aspectj.lang.JoinPoint;
 import org.aspectj.lang.annotation.AfterReturning;
 import org.aspectj.lang.annotation.AfterThrowing;
@@ -73,7 +75,7 @@ public class LogAspect
 
             // *========数据库日志=========*//
             SysOperLog operLog = new SysOperLog();
-            operLog.setStatus(BusinessStatus.SUCCESS.ordinal());
+            operLog.setStatus(Integer.valueOf(Constants.SUCCESS));
             // 请求的地址
             String ip = IpUtils.getIpAddr(ServletUtils.getRequest());
             operLog.setOperIp(ip);
@@ -85,7 +87,7 @@ public class LogAspect
 
             if (e != null)
             {
-                operLog.setStatus(BusinessStatus.FAIL.ordinal());
+                operLog.setStatus(Integer.valueOf(Constants.FAIL));
                 operLog.setErrorMsg(StringUtils.substring(e.getMessage(), 0, 2000));
             }
             // 设置方法名称