Browse Source

安全接口问题修复

master
si@aidatagov.com 2 weeks ago
parent
commit
929036a8ec
  1. 2
      vue-fastapi-backend/module_admin/service/metasecurity_service.py

2
vue-fastapi-backend/module_admin/service/metasecurity_service.py

@ -307,6 +307,8 @@ class MetaSecurityService:
# await test_connection(dbConnent) # await test_connection(dbConnent)
#3获取sql中涉及的表名 #3获取sql中涉及的表名
sqlScheamAndTable =await get_tables_from_sql(page_object.sqlStr) sqlScheamAndTable =await get_tables_from_sql(page_object.sqlStr)
oldStrSql= page_object.sqlStr
if page_object.isPage:
oldStrSql=generate_pagination_sql(page_object,dsDataResource["type"]) oldStrSql=generate_pagination_sql(page_object,dsDataResource["type"])
#4.执行原始sql #4.执行原始sql
result = await cls.execute_sql(dbConnent, oldStrSql,"原始") result = await cls.execute_sql(dbConnent, oldStrSql,"原始")

Loading…
Cancel
Save