FlashLinePayAsyncService.java 557 B

123456789
  1. package com.ruoyi.app.flashdelivery.payment;
  2. import org.springframework.scheduling.annotation.Async;
  3. import org.springframework.stereotype.Service;
  4. /** 回跳先返回安全页面;拒绝入队仍有持久恢复任务,不依赖内存队列保证资金正确。 */
  5. @Service public class FlashLinePayAsyncService {
  6. private final FlashLinePayService service;
  7. public FlashLinePayAsyncService(FlashLinePayService service){this.service=service;}
  8. @Async("threadPoolTaskExecutor") public void reconcile(Long id,String source){service.reconcile(id,source);}
  9. }