Helius
2020-06-15 0169b3c71efc064577a45c5058d458c9ef1cb94a
src/main/resources/mapper/system/UserMapper.xml
@@ -175,8 +175,7 @@
            a.create_time,
            a.status,
            b.return_ratio,
            c.phone telphone,
            c.email,
            a.mobile telphone,
            c.referer_id refererId,
            c.certify_status
        from t_user a
@@ -194,4 +193,17 @@
    <select id="selectUserByInviteId" resultType="user">
        select * from t_user where invite_id=#{inviteId}
    </select>
    <select id="selectUserInfoById" resultType="user">
        select
            a.user_id,
            a.agent_name,
            a.username,
            a.mobile,
            a.invite_id,
            b.return_ratio
        from t_user a
        left join agent_friend_relation b on a.user_id=b.user_id
        where a.user_id=#{id}
    </select>
</mapper>