| | |
| | | myInviteChildInfoVo.setAddress(child.getAddress()); |
| | | myInviteChildInfoVo.setAccountType(child.getAccountType()); |
| | | DappUsdtPerkEntity childUsdtPerkEntity = dappUsdtPerkEntityMapper.selectByMemberId(child.getId()); |
| | | if(ObjectUtil.isEmpty(dappUsdtPerkEntity)){ |
| | | dappUsdtPerkEntity = new DappUsdtPerkEntity(); |
| | | dappUsdtPerkEntity.setMemberId(child.getId()); |
| | | dappUsdtPerkEntityMapper.insert(dappUsdtPerkEntity); |
| | | // BigDecimal achieveAmountByMemberId = dappUsdtPerkEntityMapper.selectAchieveAmountByMemberId(child.getId()); |
| | | if(ObjectUtil.isEmpty(childUsdtPerkEntity)){ |
| | | childUsdtPerkEntity = new DappUsdtPerkEntity(); |
| | | childUsdtPerkEntity.setMemberId(child.getId()); |
| | | dappUsdtPerkEntityMapper.insert(childUsdtPerkEntity); |
| | | } |
| | | myInviteChildInfoVo.setMemberAchieve(childUsdtPerkEntity.getAchieveAmount()); |
| | | |
| | | myInviteChildInfoVo.setMemberAchieve(ObjectUtil.isEmpty(childUsdtPerkEntity.getAchieveAmount()) ? BigDecimal.ZERO : childUsdtPerkEntity.getAchieveAmount()); |
| | | HashMap<String, BigDecimal> childMaxMinAchieve = getMaxMinAchieve(child.getId()); |
| | | myInviteChildInfoVo.setMaxAchieve(childMaxMinAchieve.get(AppContants.MAXACHIEVE)); |
| | | myInviteChildInfoVo.setMinAchieve(childMaxMinAchieve.get(AppContants.MINACHIEVE)); |