KKSU
2024-07-06 855b8a7835bfffd7e81ef5fb2d9e6bad133136c9
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();