KKSU
2024-07-06 2fd95079b2636630b748ca3d718a7d2e8937d167
src/main/java/cc/mrbird/febs/dapp/service/impl/DappSystemServiceImpl.java
@@ -606,18 +606,23 @@
         *      *      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();