| | |
| | | <select id="selectByMemberId" resultType="com.xcong.excoin.modules.member.entity.MemberPaymentMethodEntity">
|
| | | SELECT a.* FROM member_payment_method a WHERE a.member_id = #{memberId}
|
| | | </select>
|
| | |
|
| | | <select id="selectDefualtMethod" resultType="com.xcong.excoin.modules.member.entity.MemberPaymentMethodEntity">
|
| | | select * from member_payment_method
|
| | | <where>
|
| | | <if test="memberId != null">
|
| | | and member_id=#{memberId}
|
| | | </if>
|
| | | <if test="isDefault != null and isDefault != ''">
|
| | | and is_defualt = #{isDefault}
|
| | | </if>
|
| | | <if test="type != null">
|
| | | and payment_type = #{type}
|
| | | </if>
|
| | | </where>
|
| | | </select>
|
| | | </mapper> |