| | |
| | | @Pointcut(value = "execution(public * com.whyc..controller.*.add*(..))" + |
| | | "|| execution(public * com.whyc..controller.*.delete*(..))" + |
| | | "|| execution(public * com.whyc..controller.*.update*(..))" + |
| | | "|| execution(public * com.whyc..controller.LoginController.log*(..))" |
| | | "|| execution(public * com.whyc..controller.LoginController.log*(..))" + |
| | | "|| execution(public * com.whyc..controller.UserInfController.resetSnId*(..))" |
| | | ) |
| | | private void operationLogPointcut(){}; |
| | | |
| | |
| | | type1 = OperationLogEnum.TYPE_1_SYS.getType(); |
| | | type2 = OperationLogEnum.TYPE_2_USER_DELETE.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_USER_DELETE.getName(); |
| | | }else if(methodName.contains("updatePassword")){ //密码重置 TODO |
| | | }else if(methodName.contains("resetSnId")){ //密码重置 |
| | | type1 = OperationLogEnum.TYPE_1_SYS.getType(); |
| | | type2 = OperationLogEnum.TYPE_2_USER_UPDATE_PASSWORD.getType(); |
| | | operationTypeName = OperationLogEnum.TYPE_2_USER_UPDATE_PASSWORD.getName(); |
| | |
| | | if (methodSignature.contains("LoginController.login")) { |
| | | map.put("usnId","保密,忽略存储"); |
| | | } |
| | | //TODO 修改密码接口的密码,也不存储 |
| | | //修改密码接口的密码,也不存储 |
| | | else if(methodSignature.contains("UserInfController.resetSnId")){ |
| | | map.put("uid","保密,忽略存储"); |
| | | } |
| | | String operationMsg = "执行了" + className + "的" + operationTypeName + "操作."; |
| | | String operationDetail = "具体调用方法为:" + methodName + ",具体参数为:" + map.toString(); |
| | | |