| | |
| | | where state = #{state} |
| | | order by id ASC |
| | | limit 1 |
| | | for update |
| | | </select> |
| | | |
| | | <select id="selectByIdForUpdate" resultType="cc.mrbird.febs.dapp.entity.DappSystemProfit"> |
| | |
| | | from dapp_system_profit a |
| | | where a.id = #{id} |
| | | and a.state = #{state} |
| | | for update |
| | | </select> |
| | | |
| | | <update id="updateLevelProfitById"> |
| | |
| | | order by a.create_time asc |
| | | </select> |
| | | |
| | | <select id="selectDappSysstemProfitByState" resultType="cc.mrbird.febs.dapp.entity.DappSystemProfit"> |
| | | select |
| | | a.* |
| | | from |
| | | dapp_system_profit a |
| | | where a.state = #{state} |
| | | order by a.id asc |
| | | </select> |
| | | |
| | | <select id="selectByMemberId" resultType="cc.mrbird.febs.dapp.entity.DappSystemProfit"> |
| | | select a.* |
| | | from dapp_system_profit a |
| | | where member_id = #{memberId} |
| | | limit 1 |
| | | </select> |
| | | |
| | | </mapper> |