| | |
| | | where level=#{level} |
| | | </select> |
| | | |
| | | <select id="selectMemberWithLevelAndMemberId" resultType="cc.mrbird.febs.mall.entity.MallMember"> |
| | | select * from mall_member |
| | | where level=#{level} |
| | | and find_in_set(#{inviteId}, referrer_ids) |
| | | </select> |
| | | |
| | | <select id="selectMemberIdWithLevel" resultType="java.lang.Long"> |
| | | select id from mall_member |
| | | where level = #{level} |
| | |
| | | <if test="record.accountLogin!=null and record.accountLogin!=''"> |
| | | and b.account_login like concat('%', #{record.accountLogin},'%') |
| | | </if> |
| | | <if test="record.address!=null and record.address!=''"> |
| | | and a.address like concat('%', #{record.address},'%') |
| | | </if> |
| | | <if test="record.status!=null"> |
| | | and a.state = #{record.status} |
| | | </if> |
| | | </where> |
| | | order by a.CREATED_TIME desc |
| | | </select> |
| | | |
| | | <select id="getMemberWithDrawListInPage" resultType="cc.mrbird.febs.mall.entity.MallMemberWithdraw"> |
| | | select |
| | | a.*, |
| | | b.account_login accountLogin |
| | | from mall_member_withdraw a |
| | | left join mall_member b on a.member_id = b.id |
| | | <where> |
| | | <if test="record.accountLogin!=null and record.accountLogin!=''"> |
| | | and b.account_login like concat('%', #{record.accountLogin},'%') |
| | | </if> |
| | | <if test="record.address!=null and record.address!=''"> |
| | | and a.remark like concat('%', #{record.address},'%') |
| | | </if> |
| | | <if test="record.status!=null"> |
| | | and a.status = #{record.status} |
| | | </if> |
| | | </where> |
| | | order by a.CREATED_TIME desc |
| | | </select> |
| | | |
| | | <select id="selectMemberWithLevelAndInviteId" resultType="cc.mrbird.febs.mall.entity.MallMember"> |
| | | select * from mall_member |
| | | where level = #{levelType} |
| | | and invite_id = #{inviteId} |
| | | </select> |
| | | </mapper> |