| | |
| | | |
| | | select count(*) from lf.sys_dict where tab='sys_user'; |
| | | select * from lf.sys_dict order by ns,tab,order_num limit 10 offset 0; |
| | | select distinct ns,fn_get_entity(tab) tab,tab_desc,tabletype from lf.sys_dict order by tab; |
| | | select distinct ns,tab,fn_get_entity(tab) entity,tab_desc,tabletype from lf.sys_dict order by tab; |
| | | ----------------------------------------------------------------------------------------------------- 21.æ ·å¼è¡¨ |
| | | -- DROP TABLE IF EXISTS lf.sys_style; |
| | | create table lf.sys_style( |
| | |
| | | import com.lf.server.aspect.SysLog; |
| | | import com.lf.server.entity.all.ResponseMsg; |
| | | import com.lf.server.entity.ctrl.IdNameEntity; |
| | | import com.lf.server.entity.data.DictEntity; |
| | | import com.lf.server.entity.ctrl.TabEntity; |
| | | import com.lf.server.helper.AesHelper; |
| | | import com.lf.server.helper.StringHelper; |
| | | import com.lf.server.mapper.all.BasicMapper; |
| | |
| | | @SysLog() |
| | | @ApiOperation(value = "æ¥è¯¢ææè¡¨") |
| | | @GetMapping(value = "/selectTabs") |
| | | public ResponseMsg<List<DictEntity>> selectTabs() { |
| | | public ResponseMsg<List<TabEntity>> selectTabs() { |
| | | try { |
| | | List<DictEntity> list = baseQueryService.selectTabs(); |
| | | List<TabEntity> list = baseQueryService.selectTabs(); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
¶Ô±ÈÐÂÎļþ |
| | |
| | | package com.lf.server.entity.ctrl; |
| | | |
| | | import java.io.Serializable; |
| | | |
| | | /** |
| | | * 表å®ä½ç±» |
| | | * @author WWW |
| | | */ |
| | | public class TabEntity implements Serializable { |
| | | private static final long serialVersionUID = 2786394526795387464L; |
| | | |
| | | private String ns; |
| | | |
| | | private String tab; |
| | | |
| | | private String entity; |
| | | |
| | | private String tabDesc; |
| | | |
| | | private String tabletype; |
| | | |
| | | public TabEntity() { |
| | | } |
| | | |
| | | public String getNs() { |
| | | return ns; |
| | | } |
| | | |
| | | public void setNs(String ns) { |
| | | this.ns = ns; |
| | | } |
| | | |
| | | public String getTab() { |
| | | return tab; |
| | | } |
| | | |
| | | public void setTab(String tab) { |
| | | this.tab = tab; |
| | | } |
| | | |
| | | public String getEntity() { |
| | | return entity; |
| | | } |
| | | |
| | | public void setEntity(String entity) { |
| | | this.entity = entity; |
| | | } |
| | | |
| | | public String getTabDesc() { |
| | | return tabDesc; |
| | | } |
| | | |
| | | public void setTabDesc(String tabDesc) { |
| | | this.tabDesc = tabDesc; |
| | | } |
| | | |
| | | public String getTabletype() { |
| | | return tabletype; |
| | | } |
| | | |
| | | public void setTabletype(String tabletype) { |
| | | this.tabletype = tabletype; |
| | | } |
| | | } |
| | |
| | | package com.lf.server.mapper.all; |
| | | |
| | | import com.lf.server.entity.ctrl.IdNameEntity; |
| | | import com.lf.server.entity.data.DictEntity; |
| | | import com.lf.server.entity.ctrl.TabEntity; |
| | | import org.apache.ibatis.annotations.Mapper; |
| | | import org.springframework.stereotype.Repository; |
| | | |
| | |
| | | * |
| | | * @return |
| | | */ |
| | | public List<DictEntity> selectTabs(); |
| | | public List<TabEntity> selectTabs(); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.annotation.TableName; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.lf.server.entity.ctrl.IdNameEntity; |
| | | import com.lf.server.entity.data.DictEntity; |
| | | import com.lf.server.entity.ctrl.TabEntity; |
| | | import com.lf.server.helper.AesHelper; |
| | | import com.lf.server.helper.ClassHelper; |
| | | import com.lf.server.helper.StringHelper; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<DictEntity> selectTabs() { |
| | | public List<TabEntity> selectTabs() { |
| | | return baseQueryMapper.selectTabs(); |
| | | } |
| | | } |
| | |
| | | order by order_num limit 10 |
| | | </select> |
| | | |
| | | <select id="selectTabs" resultType="com.lf.server.entity.data.DictEntity"> |
| | | select distinct ns,fn_get_entity(tab) tab,tab_desc,tabletype from lf.sys_dict order by tab; |
| | | <select id="selectTabs" resultType="com.lf.server.entity.ctrl.TabEntity"> |
| | | select distinct ns,tab,fn_get_entity(tab) entity,tab_desc,tabletype from lf.sys_dict order by tab; |
| | | </select> |
| | | </mapper> |