BUGFIX:1.微信注册后绑定邮箱失败;2.按类别查项目历史记录
This commit is contained in:
@@ -9,6 +9,8 @@ import javax.validation.constraints.NotBlank;
|
||||
@Data
|
||||
@ApiModel("邮箱发送")
|
||||
public class EmailSendDTO {
|
||||
@ApiModelProperty("用户id")
|
||||
private Long userId;
|
||||
|
||||
@NotBlank(message = "email.cannot.be.empty")
|
||||
@ApiModelProperty("邮箱")
|
||||
|
||||
@@ -37,7 +37,7 @@ public class ProjectQueryDTO extends PageQueryBaseVo {
|
||||
@ApiModelProperty("1交集2并集")
|
||||
private Integer intersection;
|
||||
|
||||
private String process;
|
||||
private List<String> process;
|
||||
|
||||
private Integer asc;
|
||||
}
|
||||
|
||||
@@ -520,19 +520,21 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
||||
Account account = accounts.get(0);
|
||||
QueryWrapper<AccountExtend> accountExtendQW = new QueryWrapper<>();
|
||||
accountExtendQW.lambda().eq(AccountExtend::getAccountId, account.getId());
|
||||
accountExtendQW.lambda().eq(AccountExtend::getAuth, "WeChat");
|
||||
accountExtendQW.lambda().eq(AccountExtend::getAuthType, "WeChat");
|
||||
List<AccountExtend> accountExtends = accountExtendMapper.selectList(accountExtendQW);
|
||||
if (CollectionUtil.isNotEmpty(accountExtends)) {
|
||||
throw new BusinessException("This email account has already been linked to another WeChat account.");
|
||||
} else {
|
||||
throw new BusinessException("This email address is already in use. Please try a different email address.");
|
||||
}
|
||||
}
|
||||
result = SendEmailUtil.send(emailSendDTO.getEmail(), null,
|
||||
SendEmailUtil.BIND_MAILBOX_TEMPLATE_ID, randomVerifyCode);
|
||||
|
||||
if (!StringUtil.isNullOrEmpty(emailSendDTO.getCountry()) || !StringUtil.isNullOrEmpty(emailSendDTO.getOccupation())
|
||||
|| StringUtils.isEmpty(emailSendDTO.getSurname()) || StringUtils.isNotEmpty(emailSendDTO.getTitle())){
|
||||
Long accountId = UserContext.getUserHolder().getId();
|
||||
Account account = baseMapper.selectById(accountId);
|
||||
if (Objects.nonNull(emailSendDTO.getUserId()) &&
|
||||
(!StringUtil.isNullOrEmpty(emailSendDTO.getCountry()) || !StringUtil.isNullOrEmpty(emailSendDTO.getOccupation())
|
||||
|| StringUtils.isEmpty(emailSendDTO.getSurname()) || StringUtils.isNotEmpty(emailSendDTO.getTitle()))){
|
||||
Account account = baseMapper.selectById(emailSendDTO.getUserId());
|
||||
account.setCountry(emailSendDTO.getCountry());
|
||||
account.setOccupation(emailSendDTO.getOccupation());
|
||||
account.setTitle(emailSendDTO.getTitle());
|
||||
|
||||
@@ -1727,7 +1727,7 @@ public class UserLikeGroupServiceImpl extends ServiceImpl<UserLikeGroupMapper, U
|
||||
queryWrapper.le("update_time", new Date(query.getEndDate()));
|
||||
}
|
||||
if (!StringUtils.isEmpty(query.getProcess())) {
|
||||
queryWrapper.eq("process", query.getProcess());
|
||||
queryWrapper.in("process", query.getProcess());
|
||||
}
|
||||
// 新增分类过滤
|
||||
if (CollectionUtil.isNotEmpty(query.getClassificationIdList())) {
|
||||
|
||||
Reference in New Issue
Block a user