解决空指针问题
This commit is contained in:
parent
a50b9fcfcf
commit
c3924dacb2
|
|
@ -65,7 +65,9 @@ public class LoginServiceImpl implements LoginService {
|
|||
resp.setUserId(tbUser.getId());
|
||||
// 用户存在,如果已填充用户信息
|
||||
TbUserSingle tbUserSingle = tbUserSingleService.lambdaQuery().eq(TbUserSingle::getUserId, tbUser.getId()).one();
|
||||
BeanUtils.copyProperties(tbUserSingle, resp);
|
||||
if(tbUserSingle != null){
|
||||
BeanUtils.copyProperties(tbUserSingle, resp);
|
||||
}
|
||||
}
|
||||
return resp;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue