BUGFIX:试用订单邮件信息;
This commit is contained in:
@@ -337,6 +337,7 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
accountMapper.updateById(accountNew);
|
accountMapper.updateById(accountNew);
|
||||||
|
|
||||||
TrialOrder trialOrder = CopyUtil.copyObject(accountNew, TrialOrder.class);
|
TrialOrder trialOrder = CopyUtil.copyObject(accountNew, TrialOrder.class);
|
||||||
|
trialOrder.setEmail(accountNew.getUserEmail());
|
||||||
trialOrder.setCreateTime(LocalDateTime.now());
|
trialOrder.setCreateTime(LocalDateTime.now());
|
||||||
trialOrder.setStatus(1);
|
trialOrder.setStatus(1);
|
||||||
// 获取用户申请试用IP
|
// 获取用户申请试用IP
|
||||||
@@ -1116,27 +1117,22 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
@Override
|
@Override
|
||||||
public void upgradeNotification() {
|
public void upgradeNotification() {
|
||||||
QueryWrapper<Account> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<Account> queryWrapper = new QueryWrapper<>();
|
||||||
// queryWrapper.lambda().eq(Account::getId, 6L);
|
queryWrapper.lambda().ne(Account::getSystemUser, 0);
|
||||||
queryWrapper.and(wrapper ->
|
|
||||||
wrapper.gt("valid_end_time", 1729479104000L)
|
|
||||||
.or().isNull("valid_end_time")
|
|
||||||
.isNull("valid_start_time"))
|
|
||||||
.isNotNull("user_email");
|
|
||||||
|
|
||||||
|
|
||||||
// QueryWrapper<Account> queryWrapper = new QueryWrapper<>();
|
|
||||||
// queryWrapper.lt("valid_end_time", 1729237154000L);
|
|
||||||
|
|
||||||
List<Account> accountList = accountMapper.selectList(queryWrapper);
|
List<Account> accountList = accountMapper.selectList(queryWrapper);
|
||||||
System.out.println(accountList);
|
System.out.println(accountList);
|
||||||
int i = 0;
|
int i = 0;
|
||||||
for (Account account : accountList) {
|
for (Account account : accountList) {
|
||||||
if (account.getLanguage().equals(Language.CHINESE_SIMPLIFIED.name())) {
|
try {
|
||||||
|
if (account.getLanguage().equals(Language.CHINESE_SIMPLIFIED.name())) {
|
||||||
SendEmailUtil.sendUpgradeNotification(account, null, 0);
|
SendEmailUtil.sendUpgradeNotification(account, null, 0);
|
||||||
} else {
|
} else {
|
||||||
// 英文
|
// 英文
|
||||||
SendEmailUtil.sendUpgradeNotification(account, null, 1);
|
SendEmailUtil.sendUpgradeNotification(account, null, 1);
|
||||||
}
|
}
|
||||||
|
}catch (Exception e) {
|
||||||
|
log.info(e.getMessage());
|
||||||
|
}
|
||||||
i ++;
|
i ++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user