| | |
| | | </select> |
| | | |
| | | <select id="selectAgentOrPartnetMemberList" resultType="cc.mrbird.febs.mall.entity.MallMember"> |
| | | select * from mall_membebr a |
| | | select * from mall_member a |
| | | where 1=1 |
| | | <if test="level == 2"> |
| | | a.account_level in (2, 3) |
| | | and a.account_level in (2, 3) |
| | | </if> |
| | | <if test="level == 3"> |
| | | a.account_level = 3 |
| | | and a.account_level = 3 |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | select IFNULL(count(1),0) |
| | | from mall_member x where x.referrer_id=#{inviteId} |
| | | and x.level != 'ZERO_LEVEL' |
| | | <if test="accountLevel == 2"> |
| | | and x.account_level = 2 |
| | | <if test="accountLevel == 1"> |
| | | and x.account_level = #{accountLevel} |
| | | </if> |
| | | <if test="accountLevel == 3"> |
| | | <if test="accountLevel == 3 or accountLevel == 2"> |
| | | and x.account_level in (2, 3) |
| | | </if> |
| | | </select> |
| | | |
| | | <select id="selectMatrixTreeMemberList" resultType="cc.mrbird.febs.mall.entity.MallMember"> |
| | | select memberInfo.* from mall_member memberInfo |
| | | inner join matrix_tree_node nodeInfo on memberInfo.id=nodeInfo.tree_node |
| | | </select> |
| | | </mapper> |