BUGFIX:试用订单邮件 订单更新时间判断;
This commit is contained in:
@@ -491,6 +491,19 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
||||
account.setCountry(emailSendDTO.getCountry());
|
||||
account.setOccupation(emailSendDTO.getOccupation());
|
||||
baseMapper.updateById(account);
|
||||
|
||||
String userEmail = account.getUserEmail();
|
||||
QueryWrapper<TrialOrder> trialOrderQueryWrapper = new QueryWrapper<>();
|
||||
trialOrderQueryWrapper.lambda().eq(TrialOrder::getEmail, userEmail);
|
||||
List<TrialOrder> trialOrders = trialOrderMapper.selectList(trialOrderQueryWrapper);
|
||||
if (CollectionUtil.isNotEmpty(trialOrders)) {
|
||||
for (TrialOrder trialOrder : trialOrders) {
|
||||
trialOrder.setCountry(emailSendDTO.getCountry());
|
||||
trialOrder.setOccupation(emailSendDTO.getOccupation());
|
||||
trialOrderMapper.updateById(trialOrder);
|
||||
}
|
||||
}
|
||||
|
||||
result = true;
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user