| | |
| | | <select id="selectAllChildAgentListByInviteId" resultType="cc.mrbird.febs.mall.entity.MallMember"> |
| | | select * from mall_member where find_in_set(#{inviteId}, referrer_ids) |
| | | </select> |
| | | |
| | | <select id="selectMemberParentAgentList" resultType="cc.mrbird.febs.mall.entity.MallMember"> |
| | | select * from mall_member |
| | | where level != 'FIRST_LEVEL' and invite_id IN |
| | | <foreach collection = "list" item = "item" separator="," open = "(" close = ")" > |
| | | #{item} |
| | | </foreach > |
| | | order by id desc |
| | | </select> |
| | | |
| | | <select id="getAgentLevelListInPage" resultType="cc.mrbird.febs.mall.vo.AdminAgentLevelVo"> |
| | | SELECT |
| | | a.id,b.description name |
| | | FROM |
| | | data_dictionary_custom a |
| | | left JOIN data_dictionary_custom b on a.code = b.code |
| | | where a.type = 'AGENT_LEVEL_REQUIRE' |
| | | GROUP BY a.id |
| | | ORDER BY |
| | | a.CREATED_TIME DESC |
| | | </select> |
| | | </mapper> |