xiaoyong931011
2021-12-16 179757032bad08d05c1e83faaee0f701a0c8bd0a
src/main/resources/mapper/modules/VideoMemberMapper.xml
@@ -15,30 +15,24 @@
    </select>
    <select id="selectVideoMemberListInPage" resultType="cc.mrbird.febs.video.entity.VideoMemberEntity">
        SELECT a.*
        SELECT
            a.*
        FROM video_member a
        <where>
            <if test="record != null" >
                <if test="record.name!=null and record.name!=''">
                    and m.name like concat('%',  #{record.name},'%')
                </if>
                <if test="record.account!=null and record.account!=''">
                    and (
                    m.phone like concat('%',  #{record.account},'%')
                    or m.email like concat('%',  #{record.account},'%')
                    or m.bind_phone like concat('%',  #{record.account},'%')
                    or m.invite_id like concat('%',  #{record.account},'%')
                    )
                    and (a.account like concat('%',  #{record.account},'%')
                        or a.name like concat('%', #{record.account}, '%'))
                </if>
                <if test="record.isVip!=null">
                    and a.is_vip = #{record.isVip}
                </if>
                <if test="record.accountStatus!=null">
                    and m.account_status = #{record.accountStatus}
                </if>
                <if test="record.accountType != null" >
                    and m.account_type = #{record.accountType}
                    and a.account_status = #{record.accountStatus}
                </if>
            </if>
        </where>
        order by m.CREATED_TIME desc
        order by a.CREATED_TIME desc
    </select>
</mapper>