diff --git a/src/main/java/cn/lihongjie/coal/aop/ControllerAop.java b/src/main/java/cn/lihongjie/coal/aop/ControllerAop.java index b456b7ce..f830d3db 100644 --- a/src/main/java/cn/lihongjie/coal/aop/ControllerAop.java +++ b/src/main/java/cn/lihongjie/coal/aop/ControllerAop.java @@ -87,7 +87,7 @@ public class ControllerAop { private static void updateSysLog(Throwable e, SysLogEntity sysLogEntity) { if (sysLogEntity != null) { - sysLogEntity.setStatus(1); + sysLogEntity.setStatus("1"); sysLogEntity.setStacktrace(ExceptionUtils.getStackTrace(e)); } @@ -118,7 +118,7 @@ public class ControllerAop { sysLogEntity.setIp(RequestUtils.getIp(request)); sysLogEntity.setIpLocation(RequestUtils.getIp(request)); sysLogEntity.setUrl(request.getRequestURI()); - sysLogEntity.setStatus(0); + sysLogEntity.setStatus("0"); sysLogEntity.setTimeCost(0); sysLogEntity.setUserAgent(RequestUtils.getUa(request));