This commit is contained in:
xiaoyu1 2018-06-29 11:10:31 +08:00
parent 7cc9c2e53d
commit aa33221ae5
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ public class RedisTransactionRecoverRepository implements TransactionRecoverRepo
final List<TransactionRecover> tccTransactions = listAll();
return tccTransactions
.stream()
.filter(transactionRecover -> transactionRecover.getLastTime().compareTo(date) > 0)
.filter(transactionRecover -> transactionRecover.getLastTime().compareTo(date) < 0)
.collect(Collectors.toList());
}

View File

@ -145,7 +145,7 @@ public class ZookeeperTransactionRecoverRepository implements TransactionRecover
public List<TransactionRecover> listAllByDelay(final Date date) {
final List<TransactionRecover> tccTransactions = listAll();
return tccTransactions.stream()
.filter(transactionRecover -> transactionRecover.getLastTime().compareTo(date) > 0)
.filter(transactionRecover -> transactionRecover.getLastTime().compareTo(date) < 0)
.collect(Collectors.toList());
}