|
|
@@ -170,7 +170,7 @@ public class WithdrawApplyService {
|
|
|
@RedisLock(value = "'approveAll'", expire = 1, unit = TimeUnit.HOURS)
|
|
|
public void approveAll() throws ExecutionException, InterruptedException {
|
|
|
new ForkJoinPool(5).submit(() -> {
|
|
|
- withdrawApplyRepo.findByCreatedAtBeforeAndStatus(LocalDate.now().minusDays(1).atStartOfDay(),
|
|
|
+ withdrawApplyRepo.findByCreatedAtBeforeAndStatus(LocalDate.now().atStartOfDay(),
|
|
|
WithdrawStatus.PENDING)
|
|
|
.parallelStream().forEach(withdrawApply -> {
|
|
|
try {
|