jinpengyong
2021-05-25 3689936045a84b2c29899bee8680b2129e8ef43a
screen-api/src/main/java/com/moral/api/service/impl/UserServiceImpl.java
@@ -71,6 +71,9 @@
    @Autowired
    private UserLogMapper userLogMapper;
    @Autowired
    private OperationLogUtils operationLogUtils;
    @Value("${AES.KEY}")
    private String AESKey;
@@ -295,7 +298,7 @@
        userMapper.insert(user);
        //日志
        String content = "添加了用户:" + user.getAccount();
        OperationLogUtils.insertLog(request, content, Constants.INSERT_OPERATE_TYPE);
        operationLogUtils.insertLog(request, content, Constants.INSERT_OPERATE_TYPE);
        return result;
    }
@@ -318,7 +321,7 @@
        //日志
        HttpServletRequest request = ((ServletRequestAttributes) Objects.requireNonNull(RequestContextHolder.getRequestAttributes())).getRequest();
        String content = "删除了用户:" + user.getAccount();
        OperationLogUtils.insertLog(request, content, Constants.DELETE_OPERATE_TYPE);
        operationLogUtils.insertLog(request, content, Constants.DELETE_OPERATE_TYPE);
    }
    @Override
@@ -400,7 +403,7 @@
                content.append(key).append(":").append(beforeValue).append("=>").append(afterValue).append(";");
            }
        }
        OperationLogUtils.insertLog(request, content.toString(), Constants.UPDATE_OPERATE_TYPE);
        operationLogUtils.insertLog(request, content.toString(), Constants.UPDATE_OPERATE_TYPE);
        return result;
    }