| | |
| | | package com.xcong.excoin.quartz.job; |
| | | |
| | | import com.xcong.excoin.common.enumerates.CoinTypeEnum; |
| | | import com.xcong.excoin.modules.blackchain.service.TrxUsdtUpdateService; |
| | | import com.xcong.excoin.modules.coin.service.BlockCoinService; |
| | | import com.xcong.excoin.modules.member.dao.MemberCoinAddressDao; |
| | | import com.xcong.excoin.modules.member.entity.MemberCoinAddressEntity; |
| | | import com.xcong.excoin.utils.RedisUtils; |
| | | import org.apache.commons.collections.CollectionUtils; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Component; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * 链上币种同步任务 |
| | |
| | | @Resource |
| | | private BlockCoinService blockCoinService; |
| | | |
| | | @Resource |
| | | private TrxUsdtUpdateService trxUsdtUpdateService; |
| | | |
| | | /** |
| | | * ETH_USDT 同步 |
| | | */ |
| | | @Scheduled(cron = "0/3 * * * * ? ") |
| | | public void usdtTc20Update() { |
| | | trxUsdtUpdateService.monitorCoinListener(); |
| | | } |
| | | |
| | | /** |
| | | * ETH_USDT 同步 |
| | |
| | | blockCoinService.updateEos(); |
| | | } |
| | | |
| | | @Scheduled(cron = "0 6/20 * * * ? ") |
| | | public void xrpUpdate() { |
| | | blockCoinService.updateXrp(); |
| | | } |
| | | |
| | | } |