| | |
| | | |
| | | @SysLog() |
| | | @ApiOperation(value = "查询字典表结构") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "name", value = "名称", dataType = "String", paramType = "query", example = "点") |
| | | }) |
| | | @GetMapping(value = "/selectDictTab") |
| | | public ResponseMsg<List<TabEntity>> selectDictTab() { |
| | | public ResponseMsg<List<TabEntity>> selectDictTab(String name) { |
| | | try { |
| | | List<TabEntity> list = dictService.selectDictTab(); |
| | | List<TabEntity> list = dictService.selectDictTab(name); |
| | | |
| | | return success(list); |
| | | } catch (Exception ex) { |
| | |
| | | /** |
| | | * 查询字典表结构 |
| | | * |
| | | * @param name |
| | | * @return |
| | | */ |
| | | public List<TabEntity> selectDictTab(); |
| | | public List<TabEntity> selectDictTab(String name); |
| | | |
| | | /** |
| | | * 插入一条 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public List<TabEntity> selectDictTab() { |
| | | return dictMapper.selectDictTab(); |
| | | public List<TabEntity> selectDictTab(String name) { |
| | | name = StringHelper.getLikeStr(name); |
| | | |
| | | return dictMapper.selectDictTab(name); |
| | | } |
| | | |
| | | @Override |
| | |
| | | </select> |
| | | |
| | | <select id="selectDictTab" resultType="com.lf.server.entity.ctrl.TabEntity"> |
| | | select ns,tab,tab_desc from lf.sys_dict |
| | | select distinct ns,tab,tab_desc from lf.sys_dict |
| | | <where> |
| | | <if test="name != null"> |
| | | tab like #{name} or tab_desc like #{name} |
| | | </if> |
| | | </where> |
| | | </select> |
| | | |
| | | <insert id="insert" parameterType="com.lf.server.entity.data.DictEntity"> |