| | |
| | | //用户id |
| | | Long uId = ActionUtil.getUser().getUId(); |
| | | |
| | | //操作类型:目前记录 增删改/登录登出 |
| | | Signature signature = point.getSignature(); |
| | | String methodSignature = signature.toString(); |
| | | String methodName = signature.getName(); |
| | | //执行的类全名 |
| | | String fullClassName = signature.getDeclaringTypeName(); |
| | | |
| | | Integer operationType = 0; |
| | | String operationTypeName = null; |
| | | if(methodName.contains("update")){ |
| | | operationTypeName = UserOperation.TYPE_UPDATE.getTypeName(); |
| | | operationType = UserOperation.TYPE_UPDATE.getType(); |
| | | //提取单项-修改配置 |
| | | if(fullClassName.contains("pageParam")){ |
| | | operationTypeName = UserOperation.TYPE_PARAM_CHANGE.getTypeName(); |
| | | operationType = UserOperation.TYPE_PARAM_CHANGE.getType(); |
| | | //提取单项-密码修改 |
| | | }else if(fullClassName.contains("updatePassword")){ |
| | | operationTypeName = UserOperation.TYPE_PASSWORD_CHANGE.getTypeName(); |
| | | operationType = UserOperation.TYPE_PASSWORD_CHANGE.getType(); |
| | | }else { |
| | | operationTypeName = UserOperation.TYPE_UPDATE.getTypeName(); |
| | | operationType = UserOperation.TYPE_UPDATE.getType(); |
| | | } |
| | | }else if (methodName.contains("add")){ |
| | | operationTypeName = UserOperation.TYPE_ADD.getTypeName(); |
| | | operationType = UserOperation.TYPE_ADD.getType(); |
| | | }else if (methodName.contains("delete")){ |
| | | operationTypeName = UserOperation.TYPE_DELETE.getTypeName(); |
| | | operationType = UserOperation.TYPE_DELETE.getType(); |
| | | }else if (methodName.contains("login")){ |
| | | }/*else if (methodName.contains("login")){ |
| | | operationTypeName = UserOperation.TYPE_LOGIN.getTypeName(); |
| | | operationType = UserOperation.TYPE_LOGIN.getType(); |
| | | }else if (methodName.contains("logout")){ |
| | | operationTypeName = UserOperation.TYPE_LOGOUT.getTypeName(); |
| | | operationType = UserOperation.TYPE_LOGOUT.getType(); |
| | | } |
| | | }*/ |
| | | |
| | | //执行的类全名 |
| | | String fullClassName = signature.getDeclaringTypeName().toString(); |
| | | //获取类型 |
| | | String[] fullClassNameSplit = fullClassName.split("\\."); |
| | | String className = fullClassNameSplit[fullClassNameSplit.length-1].replace("Controller","模块"); |