xiaoyong931011
2020-07-15 d5035b6d201f091e72470744932ecdeb54a5d2be
src/main/resources/mapper/modules/MemberMapper.xml
@@ -3,26 +3,30 @@
<mapper namespace="com.xcong.excoin.modules.member.mapper.MemberMapper">
    <select id="selectMemberListInPage" resultType="com.xcong.excoin.modules.member.entity.MemberEntity">
        select * from member
        SELECT
         *
      FROM
         member m
      LEFT JOIN member_authentication a ON m.id = a.member_id
        <where>
            <if test="record != null" >
                <if test="record.startTime!=null">
                    and create_time >=#{record.startTime}
                    and m.create_time >=#{record.startTime}
                </if>
                <if test="record.endTime!=null">
                    and #{record.endTime} >= create_time
                    and #{record.endTime} >= m.create_time
                </if>
                <if test="record.account!=null and record.account!=''">
                    and (phone = #{record.account} or email = #{record.account} or invite_id=#{record.account})
                    and (m.phone = #{record.account} or m.email = #{record.account} or m.invite_id=#{record.account})
                </if>
                <if test="record.accountStatus!=null">
                    and account_status = #{record.accountStatus}
                    and m.account_status = #{record.accountStatus}
                </if>
                <if test="record.accountType != null" >
                    and account_type = #{record.accountType}
                    and m.account_type = #{record.accountType}
                </if>
                <if test="record.certifyStatus != null">
                    and certify_status = #{record.certifyStatus}
                    and m.certify_status = #{record.certifyStatus}
                </if>
            </if>
        </where>