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