| | |
| | | FROM |
| | | member_coin_withdraw |
| | | WHERE |
| | | date_format(create_time, '%Y-%m-%d') = date_format(#{createTime}, '%Y-%m-%d') |
| | | 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 |
| | |
| | | |
| | | </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> |