| | |
| | | and a.is_inside = #{type} |
| | | </select> |
| | | |
| | | <select id="selectTotalAmountByCreateTimeAndInviteId" resultType="cc.mrbird.febs.dapp.vo.AdminMemberWithdrawVo"> |
| | | SELECT |
| | | IFNULL(sum(amount),0) AS totalWithdraw, |
| | | count(id) AS sheetOut |
| | | FROM |
| | | member_coin_withdraw |
| | | WHERE |
| | | is_inside = 'N' and status = 2 |
| | | and date_format(create_time, '%Y-%m-%d') = date_format(#{createTime}, '%Y-%m-%d') |
| | | <if test="description !=null and description != ''"> |
| | | and member_id IN ( |
| | | SELECT |
| | | id |
| | | FROM |
| | | dapp_member |
| | | WHERE |
| | | FIND_IN_SET(#{description}, referer_ids) |
| | | ) |
| | | </if> |
| | | |
| | | </select> |
| | | |
| | | <select id="selectTotalAmountByMemberIdAndType" resultType="java.math.BigDecimal"> |
| | | SELECT |
| | | IFNULL(sum(amount),0) |
| | | FROM |
| | | member_coin_withdraw |
| | | WHERE |
| | | is_inside = #{inside} |
| | | and member_id = #{memberId} |
| | | </select> |
| | | |
| | | </mapper> |