| | |
| | | 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 |