| | |
| | | * * 21-25代奖励4% |
| | | * * 26-30代奖励7% |
| | | */ |
| | | DappFundFlowEntity dappFundFlowEntity = dappFundFlowDao.selectById(id); |
| | | if(ObjectUtil.isEmpty(dappFundFlowEntity)){ |
| | | // DappFundFlowEntity dappFundFlowEntity = dappFundFlowDao.selectById(id); |
| | | // if(ObjectUtil.isEmpty(dappFundFlowEntity)){ |
| | | // return; |
| | | // } |
| | | // if(DappFundFlowEntity.WITHDRAW_STATUS_AGREE != dappFundFlowEntity.getStatus()){ |
| | | // return; |
| | | // } |
| | | DappStorage dappStorage = dappStorageMapper.selectById(id); |
| | | |
| | | if(ObjectUtil.isEmpty(dappStorage)){ |
| | | return; |
| | | } |
| | | if(DappFundFlowEntity.WITHDRAW_STATUS_AGREE != dappFundFlowEntity.getStatus()){ |
| | | return; |
| | | } |
| | | BigDecimal amount = dappFundFlowEntity.getAmount().abs(); |
| | | BigDecimal amount = dappStorage.getReleaseAmount().abs(); |
| | | /** |
| | | * 往上循环30层,判断每一层是否有见点奖 |
| | | */ |
| | | Long memberId = dappFundFlowEntity.getMemberId(); |
| | | Long memberId = dappStorage.getMemberId(); |
| | | for(int i = 1;i <= 30;i++){ |
| | | DappMemberEntity dappMemberEntity = dappMemberDao.selectById(memberId); |
| | | String refererId = dappMemberEntity.getRefererId(); |