DEBUG:添加日志打印
This commit is contained in:
@@ -3383,13 +3383,14 @@ public class AccountServiceImpl extends ServiceImpl<AccountMapper, Account> impl
|
|||||||
Account account = accountMapper.selectById(accountId);
|
Account account = accountMapper.selectById(accountId);
|
||||||
if (!Objects.isNull(account.getValidEndTime())
|
if (!Objects.isNull(account.getValidEndTime())
|
||||||
&& account.getValidEndTime().equals(currentPeriodEnd * 1000)) {
|
&& account.getValidEndTime().equals(currentPeriodEnd * 1000)) {
|
||||||
|
log.info("未更新账号有效期。current validEnd:{}, new validEnd:{}", account.getValidEndTime(), currentPeriodEnd);
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
account.setValidEndTime(currentPeriodEnd * 1000);
|
account.setValidEndTime(currentPeriodEnd * 1000);
|
||||||
accountMapper.updateById(account);
|
accountMapper.updateById(account);
|
||||||
log.info("accountId:{} 将账号有效期更新到 {}", accountId, currentPeriodEnd);
|
log.info("accountId:{} 将账号有效期更新到 {}", accountId, currentPeriodEnd);
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user