Ver Fonte

余额不足短信

xiongzhu há 3 anos atrás
pai
commit
984f77185b

+ 1 - 2
src/main/java/com/izouma/nineth/service/WithdrawApplyScheduleService.java

@@ -61,10 +61,9 @@ public class WithdrawApplyScheduleService {
 
     @Scheduled(cron = "0 0 10 * * ?")
     @RedisLock(value = "'scheduleCheckBalance'", expire = 1, unit = TimeUnit.HOURS)
-    public void scheduleCheckBalance() throws ExecutionException, InterruptedException {
+    public void scheduleCheckBalance() {
         if (DateTimeUtils.isWorkDay(LocalDate.now())) {
             String phone = sysConfigService.getString("finance_phone");
-            withdrawApplyService.approveAll();
             BigDecimal balance = sandPayService.balance();
             BigDecimal total = withdrawApplyRepo.findByCreatedAtBeforeAndStatus(LocalDate.now().atStartOfDay(),
                     WithdrawStatus.PENDING).stream().reduce(BigDecimal.ZERO, (a, b) -> a.add(b.getAmount()), BigDecimal::add);