定时人物迁移
This commit is contained in:
1 parent
c0868f9d8f
commit
32e7466615
2 files changed
+5
-4
No files matched your search
+3
-2
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
package com.ruoyi.task;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
||||
import com.ruoyi.system.domain.UsdtOrdersPlus;
|
||||
@@ -6,11 +6,12 @@ import com.ruoyi.system.service.IUsdtOrdersService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/** 支付订单生命周期任务:先处理过期订单,链上入账由独立扫描器补充。 */
|
||||
@Component
|
||||
public class PaymentOrderMonitor {
|
||||
public class PaymentOrderExpireTask {
|
||||
@Autowired private IUsdtOrdersService orders;
|
||||
|
||||
@Scheduled(fixedDelay = 30000L)
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
package com.ruoyi.system.service.impl;
|
||||
package com.ruoyi.task;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
@@ -20,7 +20,7 @@ import java.util.Date;
|
||||
* 轮询已确认 TRC20 转账,按地址、六位金额和唯一交易哈希入账。
|
||||
*/
|
||||
@Component
|
||||
public class TronPaymentScanner {
|
||||
public class TronPaymentTask {
|
||||
@Autowired
|
||||
private IUsdtOrdersService orders;
|
||||
@Autowired
|
||||
Reference in new issue
Block a user