| package com.xcong.excoin.quartz.job; | 
|   | 
| import com.xcong.excoin.modules.blackchain.service.UsdtErc20UpdateService; | 
| import lombok.extern.slf4j.Slf4j; | 
| import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | 
| import org.springframework.stereotype.Component; | 
|   | 
| import javax.annotation.PostConstruct; | 
| import javax.annotation.Resource; | 
|   | 
| /** | 
|  *  开启ERC20扫快 | 
|  * | 
|  * @author wzy | 
|  * @date 2020-05-28 | 
|  **/ | 
| @Slf4j | 
| @Component | 
| @ConditionalOnProperty(prefix = "app", name = "block-job", havingValue = "true") | 
| public class UsdtErc20InitJob { | 
|   | 
|   | 
|     @Resource | 
|     private UsdtErc20UpdateService usdtErc20UpdateService; | 
|   | 
|     @PostConstruct | 
|     public void initCoinTrade() { | 
|         System.out.println("开启USDT同步"); | 
|         usdtErc20UpdateService.updateUsdt(); | 
|     } | 
| } |