管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2023-01-11 53175eeaeed78f9539145e042ae26ed9a1c28e06
1
已修改2个文件
35 ■■■■ 文件已修改
data/update.sql 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/all/PermsController.java 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
data/update.sql
@@ -1,6 +1,6 @@
------------------------------------------------------ 更新菜单+用户
select * from lf.sys_menu where cn_name = '数据库监控';
-- update lf.sys_menu set url = 'http://172.16.200.141:8088/server/druid/index.html' where cn_name = '数据库监控';
-- update lf.sys_menu set url = 'http://pipe.cppe.com:8088/server/druid/index.html' where cn_name = '数据库监控';
select * from lf.sys_user; -- Admin@1234_lf
-- update lf.sys_user set pwd = 'd4d25475a81ef4db4b28ce4034500f896169f15c0c68da5d';
@@ -95,9 +95,9 @@
where c.uid = 'ptzh';
---------------------------------------------------------
select * from lf.sys_dir order by id
select * from lf.sys_meta order by id
select * from lf.sys_fme_log
delete from lf.sys_meta where id > 20;
select * from lf.sys_meta where id > 20 order by id; delete from lf.sys_meta where id > 20;
select * from lf.sys_fme_log;
src/main/java/com/lf/server/controller/all/PermsController.java
@@ -5,10 +5,15 @@
import com.lf.server.entity.all.PermsAuthEntity;
import com.lf.server.entity.all.ResAuthEntity;
import com.lf.server.entity.all.ResponseMsg;
import com.lf.server.entity.data.DirEntity;
import com.lf.server.entity.sys.UserEntity;
import com.lf.server.helper.StringHelper;
import com.lf.server.service.all.PermsService;
import com.lf.server.service.sys.MenuService;
import com.lf.server.service.sys.TokenService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
@@ -30,6 +35,9 @@
    @Autowired
    TokenService tokenService;
    @Autowired
    MenuService menuService;
    @SysLog()
    @ApiOperation(value = "查询当前用户的资源授权")
@@ -128,4 +136,23 @@
            return fail(ex.getMessage(), null);
        }
    }
    @SysLog()
    @ApiOperation(value = "递归查询")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "name", value = "菜单名称", dataType = "String", paramType = "query", required = false, example = "管道基础大数据平台")
    })
    @GetMapping(value = "/selectMenuRecursive")
    public ResponseMsg<List<DirEntity>> selectMenuRecursive(String name) {
        try {
            if (StringHelper.isEmpty(name)) {
                name = "管道基础大数据平台";
            }
            List<DirEntity> list = menuService.selectMenuRecursive(name);
            return success(list);
        } catch (Exception ex) {
            return fail(ex.getMessage(), null);
        }
    }
}