feat: bug修复
This commit is contained in:
@@ -24,5 +24,7 @@ public interface AuthUserDomainService {
|
||||
Object delete(AuthUserBO authUserBO);
|
||||
|
||||
Object doLogin(String validCode);
|
||||
|
||||
AuthUserBO getUserInfo(AuthUserBO authUserBO);
|
||||
}
|
||||
|
||||
|
@@ -18,6 +18,7 @@ import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.util.LinkedList;
|
||||
@@ -135,4 +136,17 @@ public class AuthUserDomainServiceImpl implements AuthUserDomainService {
|
||||
SaTokenInfo tokenInfo = StpUtil.getTokenInfo();
|
||||
return tokenInfo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AuthUserBO getUserInfo(AuthUserBO authUserBO) {
|
||||
AuthUser authUser = new AuthUser();
|
||||
authUser.setUserName(authUserBO.getUserName());
|
||||
List<AuthUser> userList = authUserService.queryByCondition(authUser);
|
||||
if (CollectionUtils.isEmpty(userList)) {
|
||||
return new AuthUserBO();
|
||||
}
|
||||
AuthUser user = userList.get(0);
|
||||
AuthUserBO authUserBO1 = AuthUserBOConverter.INSTANCE.convertEntityToBO(user);
|
||||
return authUserBO1;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user