管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-03 0816d0ea55506747a76ac915c20b0ff7ca33600a
src/main/resources/mapper/all/BaseQueryMapper.xml
@@ -22,10 +22,11 @@
    </select>
    <select id="selectTabsForCount" resultType="java.lang.Integer">
        select count(distinct tab) from lf.sys_dict
        select count(*) from lf.sys_dict
        <where>
            field = #{field} and status = 0
            <if test="tab != null">
                tab like #{tab} or tab_desc like #{tab}
                and tab like #{tab} or tab_desc like #{tab}
            </if>
        </where>
    </select>
@@ -34,7 +35,7 @@
        select ns, tab, tab_desc, fn_get_entity(tab) entity, tableType, bak, fn_tab_count(a.ns, a.tab, #{filters}) "rows"
        from lf.sys_dict a
        <where>
            field = 'gid' and status = 0
            field = #{field} and status = 0
            <if test="tab != null">
                and (tab like #{tab} or tab_desc like #{tab})
            </if>