| | |
| | | |
| | | <select id="selectProfitAmountByMemberId" resultType="java.math.BigDecimal"> |
| | | select ifnull(sum(amount), 0) from dapp_fund_flow |
| | | where member_id=#{memberId} and type in (2,3) |
| | | where member_id=#{memberId} and type in (14,15,17) |
| | | </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> |
| | | |
| | | <select id="selectNewestFundFlow" resultType="cc.mrbird.febs.dapp.entity.DappFundFlowEntity"> |