This commit is contained in:
ggmaleva 2021-06-03 11:42:32 +03:00
parent 21d2401f74
commit 40ec866fdd
No known key found for this signature in database
GPG Key ID: 0E412B78565B108F
2 changed files with 3 additions and 3 deletions

View File

@ -168,7 +168,7 @@ public class WbListDaoImpl extends AbstractDao implements WbListDao {
@Override
public void removeRottenRecords(LocalDateTime thresholdRotDate) {
log.info("WbListDaoImpl remove records older then {}", thresholdRotDate);
log.info("WbListDaoImpl remove records older than {}", thresholdRotDate);
DeleteConditionStep<WbListRecordsRecord> statement = getDslContext()
.delete(WB_LIST_RECORDS)
.where(WB_LIST_RECORDS.TIME_TO_LIVE.lessOrEqual(thresholdRotDate));
@ -177,7 +177,7 @@ public class WbListDaoImpl extends AbstractDao implements WbListDao {
@Override
public List<WbListRecords> getRottenRecords(LocalDateTime thresholdRotDate) {
log.info("WbListDaoImpl getRottenRecords older then {}: ", thresholdRotDate);
log.info("WbListDaoImpl getRottenRecords older than {}: ", thresholdRotDate);
SelectConditionStep<Record8<String, String, String, ListType, String, String, LocalDateTime, LocalDateTime>>
query =
getDslContext()

View File

@ -32,7 +32,7 @@ public class GreyRottenRuleCleanerService {
LocalDateTime thresholdRotDate = LocalDateTime.now().minusDays(freshPeriod);
List<WbListRecords> rotRecords = wbListDao.getRottenRecords(thresholdRotDate);
if (CollectionUtils.isEmpty(rotRecords)) {
log.info("Records older then {} not found", thresholdRotDate);
log.info("Records older than {} not found", thresholdRotDate);
return;
}
rotRecords.forEach(record -> {