| | |
| | | public void doAfterReturnOperation(JoinPoint point,Object resp){ |
| | | //用户id |
| | | Long uId = ActionUtil.getUser().getId(); |
| | | String name=ActionUtil.getUser().getName(); |
| | | |
| | | Signature signature = point.getSignature(); |
| | | String methodSignature = signature.toString(); |
| | |
| | | String operationDetail = "具体调用方法为:"+methodName+",具体参数为:"+map.toString(); |
| | | |
| | | |
| | | service.recordOperationLog(uId,operationType,operationTime,terminalIp,operationMsg,operationDetail); |
| | | service.recordOperationLog(uId,name,operationType,operationTime,terminalIp,operationMsg,operationDetail); |
| | | |
| | | } |
| | | |
| | |
| | | |
| | | private Integer id; |
| | | |
| | | @TableField(exist = false) |
| | | private Integer name; |
| | | private String name; |
| | | |
| | | private Integer oprateType; |
| | | |
| | |
| | | @Autowired(required = false) |
| | | private DocLogMapper mapper; |
| | | |
| | | public void recordOperationLog(Long uId, Integer operationType, Date operationTime, String terminalIp, String operationMsg, String operationDetail) { |
| | | public void recordOperationLog(Long uId,String name, Integer operationType, Date operationTime, String terminalIp, String operationMsg, String operationDetail) { |
| | | DocLog docLog=new DocLog(); |
| | | docLog.setId(uId.intValue()); |
| | | docLog.setName(name); |
| | | docLog.setOprateType(operationType); |
| | | docLog.setOprateDay(operationTime); |
| | | docLog.setTerminalIp(terminalIp); |