pms-parent/pms-global/src/main/java/com/dy/pmsGlobal/aop/LogAspect.java
@@ -48,6 +48,7 @@ @AfterReturning(pointcut = "@annotation(com.dy.pmsGlobal.aop.Log)", returning = "result") public void logAfterReturning(JoinPoint joinPoint, BaseResponse result) { log.error(result.toString()); if(isDevStage != null && !isDevStage.trim().equals("") && isDevStage.trim().equalsIgnoreCase("true")){ return; } @@ -69,6 +70,7 @@ logSv.save(user.id,user.name, operationName,ip,result.getCode(),result.getMsg()); } }catch (Exception e){ log.error(result.toString()); log.error("记录日志异常:"+e.getMessage()); } }