| | |
| | | parent.setLevel(MemberLevelEnum.V_DIRECTOR.getType()); |
| | | parent.setDirector(AppContants.OPTION_YES); |
| | | memberMapper.updateById(parent); |
| | | continue; |
| | | } |
| | | continue; |
| | | } |
| | | |
| | | /** |
| | |
| | | int levelCode = MemberLevelEnum.NORMAL.getLevelCode(nextLevelName); |
| | | |
| | | DataDictionaryCustom newLevelDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode("AGENT_PERK_SET", nextLevelName); |
| | | if(ObjectUtil.isEmpty(newLevelDic)){ |
| | | continue; |
| | | } |
| | | |
| | | AdminAgentInfo adminAgentInfo = JSONObject.parseObject(newLevelDic.getValue(), AdminAgentInfo.class); |
| | | if (!directMemberCnt(parent, adminAgentInfo)) { |
| | |
| | | } |
| | | BigDecimal amountTC = new BigDecimal(1000); |
| | | //购买套餐按照1000的基数去补贴,如5000,则补贴5次1000 |
| | | int times = Integer.parseInt(amountTCAll.divideToIntegralValue(amountTC).toString()); |
| | | int times = amountTCAll.divideToIntegralValue(amountTC).intValue(); |
| | | if(times < 1){ |
| | | return; |
| | | } |