| | |
| | | import org.springblade.modules.system.service.IUserDeptService; |
| | | import org.springblade.modules.system.service.IUserOauthService; |
| | | import org.springblade.modules.system.service.IUserService; |
| | | import org.springblade.modules.system.vo.UserDetailVO; |
| | | import org.springblade.modules.system.vo.UserVO; |
| | | import org.springblade.modules.system.wrapper.UserWrapper; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | public List<User> getUserListByPhoneOrAccount(String phoneNumber) { |
| | | return baseMapper.getUserListByPhoneOrAccount( phoneNumber); |
| | | } |
| | | |
| | | /** |
| | | * 获取用户信息 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public UserDetailVO getUserInfo(Long userId) { |
| | | // 根据用户id 获取用户详情信息 |
| | | UserDetailVO userVO = baseMapper.getUserInfo(userId); |
| | | if (null!=userVO){ |
| | | userVO.setPassword(null); |
| | | } |
| | | // 返回 |
| | | return userVO; |
| | | } |
| | | } |