UserServiceImpl.java 456 Bytes
package vion.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import vion.mapper.UserMapper;
import vion.model.User;
import vion.service.IUserSerrvice;

@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements IUserSerrvice {
    @Override
    public User saveAndReturn(User user) {
        this.saveOrUpdate(user);
        return user;
    }
}