master:代发注册进入后台管理系统报错;
parent
cf32c754b9
commit
92bfb2fb9a
|
|
@ -100,9 +100,11 @@ public class UserAuthenticationServiceImpl implements IUserAuthenticationService
|
|||
@Override
|
||||
@Transactional(readOnly = true)
|
||||
public UserAuthResDTO getInfoByUserId(Long userId) {
|
||||
UserAuthentication userAuth = Optional.ofNullable(this.userAuthMapper.selectOne(new LambdaQueryWrapper<UserAuthentication>()
|
||||
.eq(UserAuthentication::getUserId, userId)))
|
||||
.orElseThrow(() -> new ServiceException("代发不存在!", HttpStatus.ERROR));
|
||||
UserAuthentication userAuth = this.userAuthMapper.selectOne(new LambdaQueryWrapper<UserAuthentication>()
|
||||
.eq(UserAuthentication::getUserId, userId).eq(UserAuthentication::getDelFlag, Constants.UNDELETED));
|
||||
if (ObjectUtils.isEmpty(userAuth)) {
|
||||
return new UserAuthResDTO();
|
||||
}
|
||||
SysFile faceFile = this.fileMapper.selectById(userAuth.getIdCardFaceFileId());
|
||||
SysFile emblemFile = this.fileMapper.selectById(userAuth.getIdCardEmblemFileId());
|
||||
return BeanUtil.toBean(userAuth, UserAuthResDTO.class).setUserAuthId(userAuth.getId())
|
||||
|
|
|
|||
Loading…
Reference in New Issue