| | |
| | | |
| | | @Slf4j |
| | | @Component |
| | | @ConditionalOnProperty(prefix = "system", name = "online-transfer", havingValue = "true") |
| | | @ConditionalOnProperty(prefix = "system", name = "quartz-job", havingValue = "true") |
| | | public class BnbTransferJob{ |
| | | /** |
| | | * 搜索还未发生转账操作,但是记录已经更新没有产生HASH值的流水记录,并发起转账操作 |
| | |
| | | @Autowired |
| | | private DappSystemService dappSystemService; |
| | | |
| | | @Scheduled(cron = "0/30 * * * * ? ") |
| | | public void BnbTransferAgain() { |
| | | DappFundFlowEntity dappFundFlowEntity = dappFundFlowDao.selectByStateAndVersionAndFromHashLimitOne(2,2); |
| | | if(ObjectUtil.isNotEmpty(dappFundFlowEntity)){ |
| | | Integer isReturn = dappFundFlowEntity.getIsReturn(); |
| | | if(DappFundFlowEntity.WITHDRAW_STATUS_AGREE == isReturn){ |
| | | chainProducer.sendBnbTransferTestMsg(dappFundFlowEntity.getId()); |
| | | } |
| | | } |
| | | } |
| | | // @Scheduled(cron = "0/30 * * * * ? ") |
| | | // public void BnbTransferAgain() { |
| | | // DappFundFlowEntity dappFundFlowEntity = dappFundFlowDao.selectByStateAndVersionAndFromHashLimitOne(2,2); |
| | | // if(ObjectUtil.isNotEmpty(dappFundFlowEntity)){ |
| | | // Integer isReturn = dappFundFlowEntity.getIsReturn(); |
| | | // if(DappFundFlowEntity.WITHDRAW_STATUS_AGREE == isReturn){ |
| | | // chainProducer.sendBnbTransferTestMsg(dappFundFlowEntity.getId()); |
| | | // } |
| | | // } |
| | | // } |
| | | |
| | | @Scheduled(cron = "0/30 * * * * ? ") |
| | | public void ABTransferAgain() { |