| | |
| | | public FebsResponse getMemberInfo() { |
| | | DappMemberEntity member = LoginUserUtil.getAppUser(); |
| | | DappMemberInfoVo dappMemberInfoVo = dappMemberDao.selectByMemberId(member.getId()); |
| | | if(StrUtil.isNotEmpty(dappMemberInfoVo.getAccountType())){ |
| | | String levelDescription = MemberLevelEnum.MEMBER.getLevelDescription(dappMemberInfoVo.getAccountType()); |
| | | dappMemberInfoVo.setAccountType(levelDescription); |
| | | } |
| | | |
| | | BigDecimal amountPerkTotal = dappFundFlowDao.selectSumAmountByMemberIdAndTypeAndStatus(member.getId(), |
| | | FundFlowEnum.MEMBER_AMOUNT_PERK_TOTAL.getCode(), 2); |
| | |
| | | }else if(4 == type){ |
| | | redisKey = AppContants.K_LINE_MONTH; |
| | | }else{ |
| | | redisKey = AppContants.K_LINE_HOUR; |
| | | redisKey = AppContants.K_LINE_NOW; |
| | | } |
| | | Object o = redisUtils.get(redisKey); |
| | | if(ObjectUtil.isNotEmpty(o)){ |
| | |
| | | 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)); |