| | |
| | | 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 |
| | |
| | | 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 |
| | |
| | | <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> |
| | |
| | | <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 |
| | |
| | | <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 |
| | |
| | | and ns = #{ns} |
| | | </if> |
| | | <if test="tab != null"> |
| | | and tab like #{tab} |
| | | and upper(tab) like #{tab} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | and ns = #{ns} |
| | | </if> |
| | | <if test="tab != null"> |
| | | and tab like #{tab} |
| | | and upper(tab) like #{tab} |
| | | </if> |
| | | </where> |
| | | order by ns,tab,id |
| | |
| | | <where> |
| | | field = #{field} and status = 0 |
| | | <if test="name != null"> |
| | | and (tab like #{name} or tab_desc like #{name}) |
| | | and (upper(tab) like #{name} or upper(tab_desc) like #{name}) |
| | | </if> |
| | | </where> |
| | | order by id; |
| | |
| | | <where> |
| | | pid = 0 |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | and upper(name) like #{name} |
| | | </if> |
| | | </where> |
| | | order by order_num; |
| | |
| | | and b.tab = #{tab} |
| | | </if> |
| | | <if test="name != null"> |
| | | and (dom_desc like #{name} or dom_name like #{name}) |
| | | and (upper(dom_desc) like #{name} or upper(dom_name) like #{name}) |
| | | </if> |
| | | </select> |
| | | |
| | |
| | | and b.tab = #{tab} |
| | | </if> |
| | | <if test="name != null"> |
| | | and (dom_desc like #{name} or dom_name like #{name}) |
| | | and (upper(dom_desc) like #{name} or upper(dom_name) like #{name}) |
| | | </if> |
| | | order by b.tab,a.dom_name,a.dom_code |
| | | limit #{limit} offset #{offset} |
| | |
| | | select count(*) from lf.sys_download |
| | | <where> |
| | | <if test="name != null"> |
| | | name like #{name} |
| | | upper(name) like #{name} or upper(descr) like #{name} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | select * from lf.sys_download |
| | | <where> |
| | | <if test="name != null"> |
| | | name like #{name} |
| | | upper(name) like #{name} or upper(descr) like #{name} |
| | | </if> |
| | | </where> |
| | | order by id desc |
| | |
| | | <where> |
| | | create_user = #{createUser} and type = #{type} |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | and (upper(name) like #{name} or upper(descr) like #{name}) |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <where> |
| | | create_user = #{createUser} and type = #{type} |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | and (upper(name) like #{name} or upper(descr) like #{name}) |
| | | </if> |
| | | </where> |
| | | order by id desc |
| | |
| | | and verid = #{verid} |
| | | </if> |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | and upper(name) like #{name} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | and verid = #{verid} |
| | | </if> |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | and upper(name) like #{name} |
| | | </if> |
| | | </where> |
| | | order by id desc |
| | |
| | | and (${dirs}) |
| | | </if> |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | and upper(name) like #{name} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | and (${dirs}) |
| | | </if> |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | and upper(name) like #{name} |
| | | </if> |
| | | </where> |
| | | order by id desc |
| | |
| | | and type in (${types}) |
| | | </if> |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | and upper(name) like #{name} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | and type in (${types}) |
| | | </if> |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | and upper(name) like #{name} |
| | | </if> |
| | | </where> |
| | | order by id desc |
| | |
| | | <where> |
| | | metaid = #{metaid} |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | and upper(name) like #{name} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | <where> |
| | | metaid = #{metaid} |
| | | <if test="name != null"> |
| | | and name like #{name} |
| | | and upper(name) like #{name} |
| | | </if> |
| | | </where> |
| | | order by id desc |
| | |
| | | select count(*) from lf.sys_style |
| | | <where> |
| | | <if test="name != null"> |
| | | name like #{name} |
| | | upper(name) like #{name} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | from lf.sys_style a |
| | | <where> |
| | | <if test="name != null"> |
| | | a.name like #{name} |
| | | upper(a.name) like #{name} |
| | | </if> |
| | | </where> |
| | | order by a.id desc |
| | |
| | | and a.dirid = ANY(fn_rec_array(#{dirid}, 'dir')) |
| | | </if> |
| | | <if test="name != null"> |
| | | and a.name like #{name} |
| | | and upper(a.name) like #{name} |
| | | </if> |
| | | </where> |
| | | </select> |
| | |
| | | and a.dirid = ANY(fn_rec_array(#{dirid}, 'dir')) |
| | | </if> |
| | | <if test="name != null"> |
| | | and a.name like #{name} |
| | | and upper(a.name) like #{name} |
| | | </if> |
| | | </where> |
| | | order by id desc |