解绑用户鉴权卡

This commit is contained in:
2023-11-29 15:05:54 +08:00
parent b17e41cf16
commit edb3194453
2 changed files with 6 additions and 13 deletions

View File

@@ -413,18 +413,10 @@
<result column="del_flag" property="delFlag" /> <result column="del_flag" property="delFlag" />
</resultMap> </resultMap>
<sql id="Base_Column_List">
id, status, merchant_id, adapay_member_id, settle_account_id, create_time, create_by, update_time, update_by, del_flag
</sql>
<sql id="selectAdapayMemberAccountVo">
select
<include refid="Base_Column_List" />
from adapay_member_account
</sql>
<select id="selectAdapayMemberAccountList" parameterType="com.jsowell.pile.domain.AdapayMemberAccount" resultMap="AdapayMemberAccountResult"> <select id="selectAdapayMemberAccountList" parameterType="com.jsowell.pile.domain.AdapayMemberAccount" resultMap="AdapayMemberAccountResult">
<include refid="selectAdapayMemberAccountVo" /> select
<include refid="Base_Column_List" />
from adapay_member_account
<where> <where>
<if test="merchantId != null and merchantId != ''"> and merchant_id = #{merchantId}</if> <if test="merchantId != null and merchantId != ''"> and merchant_id = #{merchantId}</if>
<if test="adapayMemberId != null and adapayMemberId != ''"> and adapay_member_id = #{adapayMemberId}</if> <if test="adapayMemberId != null and adapayMemberId != ''"> and adapay_member_id = #{adapayMemberId}</if>
@@ -433,7 +425,9 @@
</select> </select>
<select id="selectAdapayMemberAccountById" parameterType="Long" resultMap="AdapayMemberAccountResult"> <select id="selectAdapayMemberAccountById" parameterType="Long" resultMap="AdapayMemberAccountResult">
<include refid="selectAdapayMemberAccountVo" /> select
<include refid="Base_Column_List" />
from adapay_member_account
where id = #{id} where id = #{id}
</select> </select>

View File

@@ -126,7 +126,6 @@
<include refid="Base_Column_List"/> <include refid="Base_Column_List"/>
from pile_auth_card from pile_auth_card
where del_flag = '0' where del_flag = '0'
and status = '1'
<if test="memberId != null and memberId != ''"> <if test="memberId != null and memberId != ''">
and member_id = #{memberId,jdbcType=VARCHAR} and member_id = #{memberId,jdbcType=VARCHAR}
</if> </if>