-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
添加导出工单参数,默认为非导出工单 2、sql/templates/sqlquery.html 增加导出工单表单信息,并增加扫描行数检查 3、common/templates/config.html 增加导出工单相关配置表单 4、sql/views.py 传递相关页面所需值 5、sql/templates/sqlworkflow.html 增加工单页面,导出格式的显示 6、sql/templates/detail.html 增加下载按钮,与 offlinedownload.py 交互 7、common/check.py 增加config内oss、sftp及本地存储的检查 8、sql_api/serializers.py 传递相关参数 9、sql/utils/workflow_audit.py 取消导出工单的自动审核,正常情况下导出工单不应自动审核 10、sql/engines/offlinedownload.py 导出工单主要代码 11、sql/engines/goinception.py 增加导出工单类型 12、sql/engines/mysql.py 传递相关参数 13、sql/models.py (1)syntax_type新增(3,导出工单) (2)新增字段is_offline_export、export_format、file_name (3)permissions新增("offline_download", "离线下载权限") 涉及 sql: alter table sql_workflow add column export_format varchar(10) DEFAULT NULL, add column is_offline_export varchar(3) NOT NULL, add column file_name varchar(255) DEFAULT NULL; set @content_type_id=(select id from django_content_type where app_label='sql' and model='permission'); insert IGNORE INTO auth_permission (name, content_type_id, codename) VALUES('离线下载权限', @content_type_id, 'offline_download'); 14、sql/sql_workflow.py 增加导出格式参数 15、sql/urls.py 增加 offlinedownload 的路由 新增 sql 脚本: src/init_sql/v1.11.1_offlinedownload.sql 与上方 sql 内容一致,无需反复执行 新增依赖: sqlparse==0.4.4 paramiko==3.4.0 oss2==2.18.3 openpyxl==3.1.2
- Loading branch information
1 parent
4ac9fad
commit adbefb6
Showing
17 changed files
with
1,423 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.