首页>代码>spring+spring mvc+mybatis整合实现用户登录注册功能(idea用maven搭建)>/ssm-02/src/main/java/neusoft/service/impl/UserServiceImpl.java
package neusoft.service.impl;

import neusoft.mapper.UserMapper;
import neusoft.pojo.User;
import neusoft.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getById(Integer id) {
        return userMapper.getById(id);
    }

    @Override
    public User login(String name, String password) {
        return userMapper.login(name, password);
    }

    @Override
    public User getByName(String name) {
        return userMapper.getByName(name);
    }

    @Override
    public boolean insert(User bean) {
        return userMapper.insert(bean);
    }

    @Override
    public boolean update(User bean) {
        return userMapper.update(bean);
    }

    @Override
    public List<User> getList() {
        return userMapper.getList();
    }
}
最近下载更多
xiubiaoya  LV1 6月1日
vincemokea  LV5 4月23日
22048042  LV1 4月9日
哪里的完整版  LV8 3月1日
zhoubowen  LV3 2024年12月29日
lee041022  LV1 2024年12月13日
王高阳  LV1 2024年10月9日
qiwwwww  LV2 2024年6月20日
Sul_ALL  LV1 2024年3月20日
最近浏览更多
241404 6月6日
暂无贡献等级
xiubiaoya  LV1 6月1日
vincemokea  LV5 4月23日
22048042  LV1 4月9日
哪里的完整版  LV8 3月1日
zhoubowen  LV3 2024年12月29日
lee041022  LV1 2024年12月13日
xiaoaitx  LV8 2024年11月22日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友