| | |
| | | @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | | public ResponseMsg<List<TabEntity>> selectTabsByPage(String depcode, String dirs, String tab, Integer pageSize, Integer pageIndex) { |
| | | public ResponseMsg<Object> selectTabsByPage(String depcode, String dirs, String tab, Integer pageSize, Integer pageIndex) { |
| | | try { |
| | | if (pageSize < 1 || pageIndex < 1) { |
| | | return fail("每页页数或分页数小于1", null); |
| | |
| | | </select> |
| | | |
| | | <select id="selectTabsByPage" resultType="com.lf.server.entity.ctrl.TabEntity"> |
| | | select a.*, fn_tab_count(a.ns, a.tab, #{filters}) "rows" from ( |
| | | select distinct ns,tab,fn_get_entity(tab) entity,tab_desc,tableType from lf.sys_dict |
| | | <where> |
| | | <if test="tab != null"> |
| | | tab like #{tab} or tab_desc like #{tab} |
| | | </if> |
| | | </where> |
| | | order by tab |
| | | limit #{limit} offset #{offset} |
| | | ) a |
| | | 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 |
| | | <if test="tab != null"> |
| | | and (tab like #{tab} or tab_desc like #{tab}) |
| | | </if> |
| | | </where> |
| | | order by id |
| | | limit #{limit} offset #{offset}; |
| | | </select> |
| | | |
| | | <select id="selectFields" resultType="com.lf.server.entity.data.DictEntity"> |