首页>代码>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); } }
最近下载更多
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日
17704627276 LV17
2021年1月26日