| | |
| | | where type = #{type} |
| | | </select> |
| | | |
| | | <select id="selectSumAmountByTypeAndDate" resultType="java.math.BigDecimal"> |
| | | select ifnull(sum(amount), 0) from dapp_fund_flow |
| | | where type = #{type} |
| | | and date_format(create_time, '%Y-%m-%d') = date_format(#{dateStr}, '%Y-%m-%d') |
| | | </select> |
| | | |
| | | <select id="selectOrderMoneyFlowInPage" resultType="cc.mrbird.febs.dapp.vo.AdminMallMoneyFlowVo"> |
| | | select |
| | | a.create_time createTime, |
| | |
| | | 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> |