public void changeStatus(String id, String status) {
        User user = userRepository.findById(id).orElseThrow(NullPointerException::new).setStatus(status);
        userRepository.save(user);
    }
changeStatus

@param id id
@param status status
src/main/java/com/tuituidan/openhub/service/UserService.java