| | |
| | | and a.withdraw_able = #{record.withdrawAble} |
| | | </if> |
| | | <if test="record.inviteId != null and record.inviteId != ''"> |
| | | and a.invite_id = #{record.inviteId} |
| | | and (a.invite_id = #{record.inviteId} or a.address = #{record.inviteId}) |
| | | </if> |
| | | </where> |
| | | order by a.create_time desc |
| | |
| | | and referer_id=#{inviteId} |
| | | </if> |
| | | <if test="type==2"> |
| | | and find_in_set(#{inviteId}, fee_profit_ids) |
| | | and find_in_set(#{inviteId}, referer_ids) |
| | | </if> |
| | | <if test="status != null"> |
| | | and active_status=#{status} |
| | |
| | | where active_status = 1 |
| | | </update> |
| | | |
| | | <update id="updateMemberActiveV2"> |
| | | update dapp_member |
| | | set active_status = 1 |
| | | where id = #{memberId} |
| | | </update> |
| | | |
| | | <select id="selectNewestDirectMember" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> |
| | | select * from dapp_member |
| | | where referer_id=#{inviteId} and active_status=1 |