diff --git a/README.md b/README.md index 0219e86..3f46771 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@

## 平台简介 - +8083的目录: /home/test RuoYi-Vue3-FastAPI是一套全部开源的快速开发平台,毫无保留给个人及企业免费使用。 * 前端采用Vue3、Element Plus,基于[RuoYi-Vue3](https://github.com/yangzongzhuan/RuoYi-Vue3)前端项目修改。 diff --git a/vue-fastapi-backend/module_admin/controller/data_ast_content_controller.py b/vue-fastapi-backend/module_admin/controller/data_ast_content_controller.py index 20eec5c..03fdb5c 100644 --- a/vue-fastapi-backend/module_admin/controller/data_ast_content_controller.py +++ b/vue-fastapi-backend/module_admin/controller/data_ast_content_controller.py @@ -99,20 +99,20 @@ async def getMetaSercuityData( ): # 获取当前用户信息 - user_id = current_user.user.user_id + user_name = current_user.user.user_name password = current_user.user.password - logger.info(f"获取当前用户信息:user_id={user_id}, password={password}") + logger.info(f"获取当前用户信息:user_id={user_name}, password={password}") # 设置字段 apiModel = MetaSecurityApiModel() - apiModel.dbRId = dataAstSecuRequest.data_ast_src - apiModel.username = user_id + apiModel.dbRCode = dataAstSecuRequest.data_ast_src + apiModel.username = user_name apiModel.password = password apiModel.sqlStr = "select * from " + dataAstSecuRequest.data_ast_eng_name - logger.info(f"设置 apiModel 参数:dbRId={apiModel.dbRId}, username={apiModel.username}, password={apiModel.password}, sqlStr={apiModel.sqlStr}") + # logger.info(f"设置 apiModel 参数:dbRId={apiModel.dbRId}, username={apiModel.username}, password={apiModel.password}, sqlStr={apiModel.sqlStr}") # 打印 apiModel 对象 - logger.debug(f"apiModel 对象内容:{apiModel}") + # logger.debug(f"apiModel 对象内容:{apiModel}") # 调用服务层方法 config_detail_result = await MetaSecurityService.getMetaSercuitybysql(request, query_db, apiModel) diff --git a/vue-fastapi-backend/module_admin/service/data_ast_content_service.py b/vue-fastapi-backend/module_admin/service/data_ast_content_service.py index e6fa793..7c18587 100644 --- a/vue-fastapi-backend/module_admin/service/data_ast_content_service.py +++ b/vue-fastapi-backend/module_admin/service/data_ast_content_service.py @@ -706,7 +706,7 @@ class DataCatalogService: - +