xiaoyong931011
2022-11-22 613362efb471ac5ec435f1ede87481d53a16be56
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cc.mrbird.febs.dapp.mapper.DappMemberAddressDao">
 
    <select id="selectByMemberId" resultType="cc.mrbird.febs.dapp.vo.ApiAddressInfoVo">
        select
            concat(left(a.address,3), '******', right(a.address,3)) address,
            a.address addressClear,
            a.type type,
            a.id id
        from dapp_member_address a
        where a.member_id = #{memberId}
        order by a.create_time desc
        limit 1
    </select>
 
 
</mapper>