jiangqs
2023-06-30 cbc564a7088503ad8cc7af4e1d2ba417d061e615
ruoyi-modules/ruoyi-member/src/main/resources/mapper/member/MemberArchiveMapper.xml
@@ -66,7 +66,7 @@
        </foreach>
    </delete>
    <select id="listVoByUserId" resultType="com.ruoyi.member.domain.vo.MemberArchiveVo">
    <select id="listMgtVoByUserId" resultType="com.ruoyi.member.domain.vo.MemberArchiveVo">
        SELECT
        tmaf.id fieldId,
        tmaf.field_name fieldName,
@@ -77,4 +77,14 @@
        ORDER BY tmaf.field_sort DESC
    </select>
    <select id="listMerVoByUserId" resultType="com.ruoyi.member.domain.vo.MemberArchiveVo">
        SELECT
        tmaf.id fieldId,
        tmaf.field_name fieldName,
        tma.field_value fieldValue
        FROM t_member_archive_fields tmaf
        LEFT JOIN t_member_archive tma ON tma.field_id = tmaf.id AND tma.user_id = #{userId} AND tma.del_flag = 0
        WHERE tmaf.del_flag = 0
        ORDER BY tmaf.field_sort DESC
    </select>
</mapper>