| | |
| | | <mapper namespace="cc.mrbird.febs.dapp.mapper.DappFundFlowDao"> |
| | | |
| | | <select id="selectInPage" resultType="cc.mrbird.febs.dapp.entity.DappFundFlowEntity"> |
| | | select a.*, b.address address from dapp_fund_flow a |
| | | select a.*,(a.amount+a.fee) realAmount, b.address address from dapp_fund_flow a |
| | | inner join dapp_member b on a.member_id=b.id |
| | | <where> |
| | | <if test="record.currentUser != null"> |
| | |
| | | and status = 2 |
| | | group by member_id |
| | | </select> |
| | | |
| | | <select id="selectSumAmountByMemberIdAndType" resultType="java.math.BigDecimal"> |
| | | select ifnull(sum(amount), 0) from dapp_fund_flow |
| | | where member_id = #{memberId} |
| | | and type = #{type} |
| | | </select> |
| | | </mapper> |