From f6a912c1a6a26c809568f964941fb4ad4483274e Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Mon, 31 May 2021 11:19:40 +0800
Subject: [PATCH] modify
---
src/main/resources/mapper/member/MemberPaymentMethodDao.xml | 19 ++++++++++++++++++-
1 files changed, 18 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/member/MemberPaymentMethodDao.xml b/src/main/resources/mapper/member/MemberPaymentMethodDao.xml
index b6501e2..7830f44 100644
--- a/src/main/resources/mapper/member/MemberPaymentMethodDao.xml
+++ b/src/main/resources/mapper/member/MemberPaymentMethodDao.xml
@@ -2,5 +2,22 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="com.xcong.excoin.modules.member.dao.MemberPaymentMethodDao">
-
+ <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>
\ No newline at end of file
--
Gitblit v1.9.1