| | |
| | | </select> |
| | | |
| | | |
| | | <select id="selectOneByCreateTimeDesc" resultType="cc.mrbird.febs.dapp.entity.DappStorage"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | dapp_storage |
| | | ORDER BY |
| | | create_time DESC |
| | | limit #{offset},#{count} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectByAmountDesc" resultType="cc.mrbird.febs.dapp.entity.DappStorage"> |
| | | SELECT |
| | | * |
| | | FROM |
| | | dapp_storage |
| | | where |
| | | date_format(create_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d') |
| | | ORDER BY |
| | | amount DESC |
| | | limit #{offset},#{count} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectSumByAmountDesc" resultType="cc.mrbird.febs.dapp.entity.DappStorage"> |
| | | SELECT |
| | | member_id memberId, |
| | | sum(amount) amount |
| | | FROM |
| | | dapp_storage |
| | | where |
| | | date_format(create_time, '%Y-%m-%d') = date_format(#{date}, '%Y-%m-%d') |
| | | GROUP BY |
| | | member_id |
| | | ORDER BY |
| | | amount DESC |
| | | limit #{offset},#{count} |
| | | </select> |
| | | |
| | | |
| | | <select id="selectAmountByAmountDesc" resultType="cc.mrbird.febs.dapp.entity.DappStorage"> |
| | | select |
| | | * |
| | | from |
| | | dapp_storage |
| | | where |
| | | member_id = #{memberId} |
| | | order by amount desc |
| | | limit #{offset},#{count} |
| | | </select> |
| | |
| | | </select> |
| | | |
| | | |
| | | <select id="selectListGroupByMemberId" resultType="cc.mrbird.febs.dapp.entity.DappStorage"> |
| | | SELECT |
| | | member_id |
| | | FROM |
| | | dapp_storage |
| | | GROUP BY |
| | | member_id |
| | | </select> |
| | | |
| | | |
| | | </mapper> |