xiaoyong931011
2023-05-19 24ceb7b6168f04d1727ad1bbf4ee44d33a545cf4
src/main/java/cc/mrbird/febs/job/BnbTransferJob.java
@@ -21,12 +21,17 @@
    @Autowired
    private ChainProducer chainProducer;
    @Scheduled(cron = "0/5 * * * * ? ")
    public void BnbTransferAgain() {
        DappFundFlowEntity dappFundFlowEntity = dappFundFlowDao.selectByStateAndVersionAndFromHashLimitOne(2,2);
        if(ObjectUtil.isNotEmpty(dappFundFlowEntity)){
            chainProducer.sendBnbTransferTestMsg(dappFundFlowEntity.getId());
        }
    }
//    @Scheduled(cron = "0/10 * * * * ? ")
//    public void BnbTransferAgain() {
//        DappFundFlowEntity dappFundFlowEntity = dappFundFlowDao.selectByStateAndVersionAndFromHashLimitOne(2,2);
//        if(ObjectUtil.isNotEmpty(dappFundFlowEntity)){
//            Integer isReturn = dappFundFlowEntity.getIsReturn();
//            if(DappFundFlowEntity.WITHDRAW_STATUS_AGREE == isReturn){
//                dappFundFlowEntity.setIsReturn(1);
//                dappFundFlowDao.updateById(dappFundFlowEntity);
//                chainProducer.sendBnbTransferTestMsg(dappFundFlowEntity.getId());
//            }
//        }
//    }
}