| | |
| | | and ( |
| | | m.phone like concat('%', #{record.account},'%') |
| | | or m.email like concat('%', #{record.account},'%') |
| | | or m.bind_phone like concat('%', #{record.account},'%') |
| | | or m.invite_id like concat('%', #{record.account},'%') |
| | | ) |
| | | </if> |
| | |
| | | |
| | | <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"> |
| | |
| | | |
| | | <select id="selectMemberParentAgentList" resultType="cc.mrbird.febs.mall.entity.MallMember"> |
| | | select * from mall_member |
| | | where level not in ('ZERO_LEVEL', 'FIRST_LEVEL') and invite_id IN |
| | | where level not in ('ZERO_LEVEL', 'FIRST_LEVEL') and invite_id!=#{refererId} and invite_id IN |
| | | <foreach collection = "list" item = "item" separator="," open = "(" close = ")" > |
| | | #{item} |
| | | </foreach > |
| | |
| | | <select id="getAppVersionListInPage" resultType="cc.mrbird.febs.mall.entity.AppVersion"> |
| | | select a.* from app_version a |
| | | </select> |
| | | |
| | | <select id="selectByIdAndNoLevel" resultType="cc.mrbird.febs.mall.entity.MallMember"> |
| | | select * from mall_member where referrer_id=#{refererId} and level != #{level} |
| | | </select> |
| | | </mapper> |