xiaoyong931011
2021-04-23 d4488a987cccd3ddd51a202a9f8aa71d3cdcbced
src/main/resources/mapper/modules/MemberMapper.xml
@@ -18,25 +18,25 @@
        <where>
            <if test="record != null">
                <if test="record.inviteId !=null and record.inviteId!=''">
                    and find_in_set(#{record.inviteId}, referer_ids)
                    and find_in_set(#{record.inviteId}, a.referer_ids)
                </if>
                <if test="record.startTime!=null">
                    and create_time >=#{record.startTime}
                    and a.create_time >=#{record.startTime}
                </if>
                <if test="record.endTime!=null">
                    and #{record.endTime} >= create_time
                    and #{record.endTime} >= a.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 (a.phone = #{record.account} or a.email = #{record.account} or a.invite_id=#{record.account})
                </if>
                <if test="record.accountStatus!=null">
                    and account_status = #{record.accountStatus}
                <if test="record.accountStatus!=null and record.accountStatus!=''  or record.accountStatus == 0" >
                    and a.account_status = #{record.accountStatus}
                </if>
                <if test="record.accountType != null">
                    and account_type = #{record.accountType}
                    and a.account_type = #{record.accountType}
                </if>
                <if test="record.certifyStatus != null">
                    and certify_status = #{record.certifyStatus}
                    and a.certify_status = #{record.certifyStatus}
                </if>
            </if>
        </where>