| | |
| | | DataDictionaryCustom nextLevel = dataDictionaryCustomMapper.selectNextAgentLevelInfo(parent.getLevel()); |
| | | if (nextLevel == null) { |
| | | log.info("当前层级无下一级:{}", parent.getLevel()); |
| | | return; |
| | | continue; |
| | | } |
| | | |
| | | AgentInfo agentInfo = JSONObject.parseObject(nextLevel.getValue(), AgentInfo.class); |
| | | if (!orderCntFinish(parent, agentInfo)) { |
| | | return; |
| | | continue; |
| | | } |
| | | |
| | | if (!agentCntFinish(parent, agentInfo)) { |
| | | return; |
| | | continue; |
| | | } |
| | | |
| | | parent.setLevel(nextLevel.getCode()); |
| | |
| | | |
| | | <select id="selectChildAgentList" resultType="cc.mrbird.febs.mall.entity.MallMember"> |
| | | select * from mall_member |
| | | where find_in_set(#{inviteId}, referrer_ids) and level=#{agentLevel} |
| | | where (find_in_set(#{inviteId}, referrer_ids) or invite_id=#{inviteId}) and level=#{agentLevel} |
| | | </select> |
| | | |
| | | <select id="selectByInviteIds" resultType="cc.mrbird.febs.mall.entity.MallMember"> |
| | |
| | | @Test |
| | | public void autoLevelUp() { |
| | | // agentService.autoUpAgentLevel(3L); |
| | | agentProducer.sendAutoLevelUpMsg(4L); |
| | | agentProducer.sendAutoLevelUpMsg(5L); |
| | | |
| | | // agentProducer.sendReturnMoneyMsg(24L); |
| | | } |