| | |
| | | |
| | | @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; |
| | | } |
| | |
| | | // Stream.of(joinPoint.getArgs()).forEach(System.out::println); |
| | | // String args = JSONObject.toJSONString(joinPoint.getArgs()); |
| | | //String args1 = Arrays.toString(joinPoint.getArgs()); |
| | | logSv.save(user.id,user.name, operationName,ip,result.getCode(),result.getMsg()); |
| | | logSv.save(user.id, user.name, operationName,ip, result.getCode(), result.getMsg()); |
| | | } |
| | | }catch (Exception e){ |
| | | log.error(result.toString()); |