管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-03-20 52bb9f2a447abcd960a744ecad0dc082c4b412ca
src/main/resources/mapper/all/BaseQueryMapper.xml
@@ -5,7 +5,7 @@
        select id,uname "name" from lf.sys_user
        <where>
            <if test="name != null">
                uname like #{name}
                upper(uname) like #{name}
            </if>
        </where>
        order by uname limit 10
@@ -15,7 +15,7 @@
        select id,name from lf.sys_dep
        <where>
            <if test="name != null">
                name like #{name}
                upper(name) like #{name}
            </if>
        </where>
        order by order_num limit 10
@@ -26,7 +26,7 @@
        <where>
            field = #{field} and status = 0
            <if test="tab != null">
                and tab like #{tab} or tab_desc like #{tab}
                and upper(tab) like #{tab} or upper(tab_desc) like #{tab}
            </if>
        </where>
    </select>
@@ -37,7 +37,7 @@
        <where>
            field = #{field} and status = 0
            <if test="tab != null">
                and (tab like #{tab} or tab_desc like #{tab})
                and (upper(tab) like #{tab} or upper(tab_desc) like #{tab})
            </if>
        </where>
        order by id
@@ -73,7 +73,7 @@
        <where>
            name in ('基础测绘', '基础地灾', '基础勘察', '合规数据', '管理数据', '测量(ESV)', '勘察(EGE)', '地灾(EGD)', '洞库(EGD)')
            <if test="name != null">
                and name like #{name}
                and upper(name) like #{name}
            </if>
        </where>
        group by name