| | |
| | | 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> |
| | | </where> |
| | | </select> |
| | |
| | | balance = #{record.balance} |
| | | where id=#{record.id} and version=#{record.version} |
| | | </update> |
| | | |
| | | <select id="findInviteListInPage" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> |
| | | SELECT |
| | | a.* |
| | | FROM |
| | | dapp_member a |
| | | <where> |
| | | <if test="record.inviteId != null and record.inviteId != ''"> |
| | | and find_in_set(#{record.inviteId}, a.referer_ids) |
| | | </if> |
| | | <if test="record.address != null and record.address != ''"> |
| | | and a.address = #{record.address} |
| | | </if> |
| | | </where> |
| | | order by a.CREATE_TIME desc |
| | | </select> |
| | | </mapper> |