| | |
| | | private DappSystemDao dappSystemDao; |
| | | |
| | | |
| | | @Scheduled(cron = "0 0 0 * * ? ") |
| | | @Scheduled(cron = "0 0/1 * * * ? ") |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void addDappMineData(){ |
| | | log.info("矿池数据增加"); |
| | |
| | | DappReturnRatioEntity dappReturnRatioEntity = new DappReturnRatioEntity(); |
| | | dappReturnRatioEntity.setMinValue(BigDecimal.ZERO); |
| | | dappReturnRatioEntity.setMaxValue(new BigDecimal(99)); |
| | | dappReturnRatioEntity.setRatio(BigDecimal.ZERO); |
| | | returnRatios.add(dappReturnRatioEntity); |
| | | |
| | | for (DappMemberEntity member : members) { |
| | |
| | | dappWalletMineDao.updateById(walletMine); |
| | | |
| | | // 计算代理返多少 |
| | | // calAgentMoney(member, ethIncome); |
| | | calAgentMoney(member, ethIncome); |
| | | break; |
| | | } |
| | | } |