管道基础大数据平台系统开发-【后端】-Server
13693261870
2024-03-25 1c285b38777e9f37ee8d112e994443d3640b78c1
src/main/resources/mapper/sys/BlacklistMapper.xml
@@ -6,7 +6,7 @@
        <where>
            1 = 1
            <if test="ip != null">
                and ip like #{ip}
                and upper(ip) like #{ip}
            </if>
            <if test="type != null">
                and type = #{type}
@@ -19,18 +19,18 @@
        <where>
            1 = 1
            <if test="ip != null">
                and a.ip like #{ip}
                and upper(a.ip) like #{ip}
            </if>
            <if test="type != null">
                and a.type = #{type}
            </if>
        </where>
        order by a.id
        order by a.id desc
        limit #{limit} offset #{offset}
    </select>
    <select id="selectAll" resultType="com.lf.server.entity.sys.BlacklistEntity">
        select a.*,fn_uname(a.create_user) createName,fn_uname(a.update_user) updateName from lf.sys_blacklist a order by a.id;
        select a.*,fn_uname(a.create_user) createName,fn_uname(a.update_user) updateName from lf.sys_blacklist a order by a.id desc
    </select>
    <select id="selectById" resultType="com.lf.server.entity.sys.BlacklistEntity">