管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-19 6b1c5324e8d3aea31a33173880a839f39fe9f27f
1
已修改4个文件
23 ■■■■ 文件已修改
src/main/java/com/lf/server/controller/data/DictController.java 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/mapper/data/DictMapper.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/service/data/DictService.java 6 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/data/DictMapper.xml 7 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/data/DictController.java
@@ -131,10 +131,13 @@
    @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) {
src/main/java/com/lf/server/mapper/data/DictMapper.java
@@ -52,9 +52,10 @@
    /**
     * 查询字典表结构
     *
     * @param name
     * @return
     */
    public List<TabEntity> selectDictTab();
    public List<TabEntity> selectDictTab(String name);
    /**
     * 插入一条
src/main/java/com/lf/server/service/data/DictService.java
@@ -45,8 +45,10 @@
    }
    @Override
    public List<TabEntity> selectDictTab() {
        return dictMapper.selectDictTab();
    public List<TabEntity> selectDictTab(String name) {
        name = StringHelper.getLikeStr(name);
        return dictMapper.selectDictTab(name);
    }
    @Override
src/main/resources/mapper/data/DictMapper.xml
@@ -32,7 +32,12 @@
    </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">