| | |
| | | <?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="com.xcong.excoin.modules.member.mapper.MemberMapper"> |
| | | <mapper namespace="com.xcong.excoin.modules.agent.mapper.MemberMapper"> |
| | | |
| | | |
| | | <select id="selectMemberListInPage" resultType="com.xcong.excoin.modules.member.entity.MemberEntity"> |
| | | <select id="selectMemberListInPage" resultType="com.xcong.excoin.modules.agent.entity.MemberEntity"> |
| | | select * from member |
| | | <where> |
| | | <if test="record != null" > |
| | | <if test="record != null"> |
| | | <if test="record.inviteId !=null and record.inviteId!=''"> |
| | | and find_in_set(#{record.inviteId}, referer_ids) |
| | | </if> |
| | | <if test="record.startTime!=null"> |
| | | and create_time >=#{record.startTime} |
| | | </if> |
| | |
| | | <if test="record.accountStatus!=null"> |
| | | and account_status = #{record.accountStatus} |
| | | </if> |
| | | <if test="record.accountType != null" > |
| | | <if test="record.accountType != null"> |
| | | and account_type = #{record.accountType} |
| | | </if> |
| | | <if test="record.certifyStatus != null"> |
| | |
| | | order by create_time desc |
| | | </select> |
| | | |
| | | |
| | | <select id="selectMemberByInviteIdAndRefererId" resultType="com.xcong.excoin.modules.agent.entity.MemberEntity"> |
| | | select * from member |
| | | where invite_id=#{inviteId} and referer_id=#{refererId} |
| | | </select> |
| | | |
| | | </mapper> |