|
|
@ -51,7 +51,8 @@ public class RemoteUserServiceImpl implements RemoteUserService {
|
|
|
|
if (UserStatus.DISABLE.getCode().equals(sysUser.getStatus())) {
|
|
|
|
if (UserStatus.DISABLE.getCode().equals(sysUser.getStatus())) {
|
|
|
|
throw new UserException("user.blocked", username);
|
|
|
|
throw new UserException("user.blocked", username);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 此处可根据登录用户的数据不同 自行创建 loginUser
|
|
|
|
// 框架登录不限制从什么表查询 只要最终构建出 LoginUser 即可
|
|
|
|
|
|
|
|
// 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了
|
|
|
|
return buildLoginUser(userMapper.selectUserByUserName(username));
|
|
|
|
return buildLoginUser(userMapper.selectUserByUserName(username));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -66,7 +67,8 @@ public class RemoteUserServiceImpl implements RemoteUserService {
|
|
|
|
if (UserStatus.DISABLE.getCode().equals(sysUser.getStatus())) {
|
|
|
|
if (UserStatus.DISABLE.getCode().equals(sysUser.getStatus())) {
|
|
|
|
throw new UserException("user.blocked", phonenumber);
|
|
|
|
throw new UserException("user.blocked", phonenumber);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 此处可根据登录用户的数据不同 自行创建 loginUser
|
|
|
|
// 框架登录不限制从什么表查询 只要最终构建出 LoginUser 即可
|
|
|
|
|
|
|
|
// 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了
|
|
|
|
return buildLoginUser(userMapper.selectUserByPhonenumber(phonenumber));
|
|
|
|
return buildLoginUser(userMapper.selectUserByPhonenumber(phonenumber));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -81,7 +83,8 @@ public class RemoteUserServiceImpl implements RemoteUserService {
|
|
|
|
if (UserStatus.DISABLE.getCode().equals(user.getStatus())) {
|
|
|
|
if (UserStatus.DISABLE.getCode().equals(user.getStatus())) {
|
|
|
|
throw new UserException("user.blocked", email);
|
|
|
|
throw new UserException("user.blocked", email);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 此处可根据登录用户的数据不同 自行创建 loginUser
|
|
|
|
// 框架登录不限制从什么表查询 只要最终构建出 LoginUser 即可
|
|
|
|
|
|
|
|
// 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了
|
|
|
|
return buildLoginUser(userMapper.selectUserByEmail(email));
|
|
|
|
return buildLoginUser(userMapper.selectUserByEmail(email));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -95,7 +98,8 @@ public class RemoteUserServiceImpl implements RemoteUserService {
|
|
|
|
if (UserStatus.DISABLE.getCode().equals(sysUser.getStatus())) {
|
|
|
|
if (UserStatus.DISABLE.getCode().equals(sysUser.getStatus())) {
|
|
|
|
// todo 用户已被停用 业务逻辑自行实现
|
|
|
|
// todo 用户已被停用 业务逻辑自行实现
|
|
|
|
}
|
|
|
|
}
|
|
|
|
// 此处可根据登录用户的数据不同 自行创建 loginUser
|
|
|
|
// 框架登录不限制从什么表查询 只要最终构建出 LoginUser 即可
|
|
|
|
|
|
|
|
// 此处可根据登录用户的数据不同 自行创建 loginUser 属性不够用继承扩展就行了
|
|
|
|
XcxLoginUser loginUser = new XcxLoginUser();
|
|
|
|
XcxLoginUser loginUser = new XcxLoginUser();
|
|
|
|
loginUser.setUserId(sysUser.getUserId());
|
|
|
|
loginUser.setUserId(sysUser.getUserId());
|
|
|
|
loginUser.setUsername(sysUser.getUserName());
|
|
|
|
loginUser.setUsername(sysUser.getUserName());
|
|
|
|