|  |  | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 // 直推数量 | 
 |  |  |                 Integer directCnt = mallMemberMapper.selectOwnCntByInviteId(member.getReferrerId()); | 
 |  |  |                 Integer directCnt = mallMemberMapper.selectOwnCntByInviteId(parentMember.getInviteId()); | 
 |  |  |                 List<DataDictionaryCustom> dataDices = dataDictionaryCustomMapper.selectDicByType(DataDictionaryEnum.INDIRECT_BONUS_SETTING.getType()); | 
 |  |  |  | 
 |  |  |                 directCnt = directCnt == null ? 0 :directCnt; | 
 |  |  | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 // 隔代推荐奖 收益 | 
 |  |  |                 direct = direct.divide(indrectDicProp, 2, RoundingMode.HALF_UP); | 
 |  |  |                 direct = direct.multiply(indrectDicProp.divide(new BigDecimal("100"), 2, RoundingMode.HALF_UP)); | 
 |  |  |  | 
 |  |  |                 // direct 收益小于1,则跳出 | 
 |  |  |                 if (direct.compareTo(BigDecimal.ONE) < 1) { | 
 |  |  |                     continue; | 
 |  |  |                     break; | 
 |  |  |                 } | 
 |  |  |  | 
 |  |  |                 int reduceResult =  walletService.reduce(direct, parentMember.getId(), "score"); |