BUGFIX: name 信息绑定邮箱录入;
This commit is contained in:
@@ -472,11 +472,15 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
result = SendEmailUtil.send(emailSendDTO.getEmail(), null,
|
result = SendEmailUtil.send(emailSendDTO.getEmail(), null,
|
||||||
SendEmailUtil.BIND_MAILBOX_TEMPLATE_ID, randomVerifyCode);
|
SendEmailUtil.BIND_MAILBOX_TEMPLATE_ID, randomVerifyCode);
|
||||||
|
|
||||||
if (!StringUtil.isNullOrEmpty(emailSendDTO.getCountry()) || !StringUtil.isNullOrEmpty(emailSendDTO.getOccupation())){
|
if (!StringUtil.isNullOrEmpty(emailSendDTO.getCountry()) || !StringUtil.isNullOrEmpty(emailSendDTO.getOccupation())
|
||||||
|
|| StringUtils.isEmpty(emailSendDTO.getSurname()) || StringUtils.isNotEmpty(emailSendDTO.getTitle())){
|
||||||
Long accountId = UserContext.getUserHolder().getId();
|
Long accountId = UserContext.getUserHolder().getId();
|
||||||
Account account = baseMapper.selectById(accountId);
|
Account account = baseMapper.selectById(accountId);
|
||||||
account.setCountry(emailSendDTO.getCountry());
|
account.setCountry(emailSendDTO.getCountry());
|
||||||
account.setOccupation(emailSendDTO.getOccupation());
|
account.setOccupation(emailSendDTO.getOccupation());
|
||||||
|
account.setTitle(emailSendDTO.getTitle());
|
||||||
|
account.setSurname(emailSendDTO.getSurname());
|
||||||
|
account.setGivenName(emailSendDTO.getGivenName());
|
||||||
baseMapper.updateById(account);
|
baseMapper.updateById(account);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user