首页>代码>spring boot整合Security实现单点登录,支付宝支付demo(沙盒模式)。>/alipay/boot-service/src/main/java/com/example/service/impl/UserServiceImpl.java
package com.example.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.BusinessException;
import com.example.bean.User;
import com.example.mapper.UserMapper;
import com.example.service.UserService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author aqian666
 * @since 2019-09-24
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public User selectUserByName(String username) {
        QueryWrapper<User> queryWrapper = new QueryWrapper<>();
        queryWrapper.lambda().eq(User::getUsername,username);
        return userMapper.selectOne(queryWrapper);
    }
}
最近下载更多
微信网友_7134912998903808  LV15 2024年9月13日
miaoshi  LV16 2023年9月5日
在下毛毛雨  LV1 2023年4月18日
annazhang  LV29 2022年10月31日
a1677596408  LV23 2022年3月28日
liuziqi0529  LV4 2022年3月22日
crosa_Don  LV18 2022年3月2日
_nrxsh  LV12 2021年6月30日
11703060125  LV8 2021年6月3日
superscro  LV9 2021年4月27日
最近浏览更多
sjwc88  LV4 2024年12月12日
微信网友_7134912998903808  LV15 2024年9月12日
zzhzzh_--  LV1 2023年11月29日
fff2003  LV9 2023年11月17日
lyws1986  LV17 2023年10月29日
miaoshi  LV16 2023年9月5日
pfb123456  LV8 2023年8月11日
在下毛毛雨  LV1 2023年4月17日
rain112  LV31 2023年1月17日
ROCK森  LV12 2022年11月7日
顶部 客服 微信二维码 底部
>扫描二维码关注最代码为好友扫描二维码关注最代码为好友