| | |
| | | total_balance = total_balance - #{amount} |
| | | where id=#{id} |
| | | </update> |
| | | |
| | | <select id="selectTotalAmount" resultType="cc.mrbird.febs.dapp.entity.DappMemberEntity"> |
| | | select |
| | | b.id, |
| | | b.invite_id, |
| | | b.referer_id, |
| | | b.identity, |
| | | b.referer_ids |
| | | from |
| | | dapp_wallet_coin a |
| | | inner join dapp_member b on a.member_id = b.id |
| | | where a.total_amount <![CDATA[ >= ]]> 51 |
| | | </select> |
| | | |
| | | <update id="addTotalAndaddAvailableByMemberId"> |
| | | update dapp_wallet_coin |
| | | set |
| | | total_amount = total_amount + #{balance}, |
| | | available_amount = available_amount + #{balance} |
| | | where |
| | | member_id = #{memberId} |
| | | </update> |
| | | </mapper> |