add 小程序查询用户鉴权卡列表接口

This commit is contained in:
Lemon
2023-05-24 08:46:20 +08:00
parent 45cf7d84f6
commit 50c26169e9
8 changed files with 178 additions and 5 deletions

View File

@@ -179,4 +179,22 @@
<if test="phoneNumber != null and phoneNumber != ''"> and t2.mobile_number = #{phoneNumber}</if>
<if test="memberId != null and memberId != ''"> and t1.member_id = #{memberId}</if>
</select>
<select id="getAuthCardListByMemberId" resultType="com.jsowell.pile.vo.uniapp.AuthCardVO">
SELECT
t1.logic_card AS logicCard,
t1.status,
t1.member_id AS memberId,
t3.principal_balance AS principalBalance,
t3.gift_balance AS giftBalance,
t1.create_time AS createTime,
t2.mobile_number AS phoneNumber
FROM
pile_auth_card t1
JOIN member_basic_info t2 ON t1.member_id = t2.member_id
JOIN member_wallet_info t3 ON t2.member_id = t3.member_id
WHERE
t1.del_flag = '0'
AND t1.member_id = #{memberId,jdbcType=VARCHAR}
</select>
</mapper>