xiaoyong931011
2021-05-15 fa91cc62d16b55c99d4cf6451ac6e2f1e0031dd5
src/main/resources/mapper/member/MemberDao.xml
@@ -56,13 +56,14 @@
        <association property="ydBasicLevelSettingEntity" javaType="com.xcong.excoin.modules.yunding.entity.YdBasicLevelSettingEntity">
            <result property="level" column="level"/>
            <result property="usdtRatio" column="usdt_ratio" />
            <result property="xchRatio" column="xch_ratio" />
        </association>
    </resultMap>
    <select id="selectYdParentAgent" resultMap="memberAgentMap">
        select a.*, b.level, b.usdt_ratio from member a
        select a.*, b.level, b.usdt_ratio, b.xch_ratio from member a
        inner join yd_basic_level_setting b on a.agent_level=b.id
        where a.invite_id in
        where a.invite_id!='rxadr3' and a.invite_id in
        <foreach collection = "list" item = "item"  separator=","  open = "(" close = ")" >
            #{item}
        </foreach >
@@ -86,4 +87,8 @@
        where (find_in_set(#{inviteId}, a.referer_ids) or invite_id=#{inviteId})
        and agent_level in (1, 2)
    </select>
    <select id="selectPartnerMemberList" resultType="com.xcong.excoin.modules.member.entity.MemberEntity">
        select * from member where is_trader=1
    </select>
</mapper>