正在显示
3 个修改的文件
包含
30 行增加
和
4 行删除
@@ -44,7 +44,7 @@ ELSE | @@ -44,7 +44,7 @@ ELSE | ||
44 | RAISE NOTICE '视图不存在'; | 44 | RAISE NOTICE '视图不存在'; |
45 | END IF; | 45 | END IF; |
46 | END $$; | 46 | END $$; |
47 | -create view view_area_rel_expireds as select area_code as id,area_code,latest_update_time,created_at,area_rel_expired_id,remark,module,expired_at,latest_check_at,notice_times from area_rel_expireds; | 47 | +create view view_area_rel_expireds as select area_rel_expired_id as id,area_code as id,area_code,latest_update_time,created_at,area_rel_expired_id,remark,module,expired_at,latest_check_at,notice_times from area_rel_expireds; |
48 | -- pk | 48 | -- pk |
49 | -- jsonb | 49 | -- jsonb |
50 | 50 |
@@ -10,7 +10,7 @@ BEGIN | @@ -10,7 +10,7 @@ BEGIN | ||
10 | RAISE NOTICE '视图不存在'; | 10 | RAISE NOTICE '视图不存在'; |
11 | END IF; | 11 | END IF; |
12 | END $$; | 12 | END $$; |
13 | -create view view_area_rel_expireds as select area_code,latest_update_time,created_at,area_rel_expired_id,remark,module,expired_at,latest_check_at,notice_times from area_rel_expireds; | 13 | +create view view_area_rel_expireds as select area_rel_expired_id as id,area_code,latest_update_time,created_at,area_rel_expired_id,remark,module,expired_at,latest_check_at,notice_times from area_rel_expireds; |
14 | -- pk | 14 | -- pk |
15 | -- jsonb | 15 | -- jsonb |
16 | 16 | ||
@@ -61,7 +61,7 @@ BEGIN | @@ -61,7 +61,7 @@ BEGIN | ||
61 | RAISE NOTICE '视图不存在'; | 61 | RAISE NOTICE '视图不存在'; |
62 | END IF; | 62 | END IF; |
63 | END $$; | 63 | END $$; |
64 | -create view view_area_categorys as select area_code,area_category_id,category_type,tag,begin_time,created_at,deleted_at,end_time,latest_update_time,updated_at,status,operator_id from area_categorys; | 64 | +create view view_area_categorys as select area_category_id as id,area_code,area_category_id,category_type,tag,begin_time,created_at,deleted_at,end_time,latest_update_time,updated_at,status,operator_id from area_categorys; |
65 | -- pk | 65 | -- pk |
66 | -- jsonb | 66 | -- jsonb |
67 | 67 | ||
@@ -503,7 +503,7 @@ BEGIN | @@ -503,7 +503,7 @@ BEGIN | ||
503 | RAISE NOTICE '视图不存在'; | 503 | RAISE NOTICE '视图不存在'; |
504 | END IF; | 504 | END IF; |
505 | END $$; | 505 | END $$; |
506 | -create view view_sales_methods as select created_at,data_from,sales_method_id,updated_at,method_name,operator_id,latest_update_time from sales_methods; | 506 | +create view view_sales_methods as select sales_method_id as id,created_at,data_from,sales_method_id,updated_at,method_name,operator_id,latest_update_time from sales_methods; |
507 | -- pk | 507 | -- pk |
508 | -- jsonb operator | 508 | -- jsonb operator |
509 | 509 |
@@ -30,6 +30,19 @@ func (tableService *TableService) ShowBusinessDatabases(ctx *domain.Context, cmd | @@ -30,6 +30,19 @@ func (tableService *TableService) ShowBusinessDatabases(ctx *domain.Context, cmd | ||
30 | 30 | ||
31 | var GlobalDB []command.DBTablesRequest = []command.DBTablesRequest{ | 31 | var GlobalDB []command.DBTablesRequest = []command.DBTablesRequest{ |
32 | { | 32 | { |
33 | + ByteBankDBName: "tl_mysql.suplus_salary", | ||
34 | + ByteBankDBZhName: "销导报表系统", | ||
35 | + GenerateBusinessTableViewRequest: command.GenerateBusinessTableViewRequest{ | ||
36 | + Host: "114.55.200.59", | ||
37 | + Port: "32306", | ||
38 | + User: "root", | ||
39 | + Password: "eagle1010", | ||
40 | + DBName: "suplus_salary_test", | ||
41 | + SchemaName: "public", | ||
42 | + DBType: "mysql", | ||
43 | + }, | ||
44 | + }, | ||
45 | + { | ||
33 | ByteBankDBName: "allied_creation_reporting_system_test.public", | 46 | ByteBankDBName: "allied_creation_reporting_system_test.public", |
34 | ByteBankDBZhName: "销导报表系统", | 47 | ByteBankDBZhName: "销导报表系统", |
35 | GenerateBusinessTableViewRequest: command.GenerateBusinessTableViewRequest{ | 48 | GenerateBusinessTableViewRequest: command.GenerateBusinessTableViewRequest{ |
@@ -42,6 +55,19 @@ var GlobalDB []command.DBTablesRequest = []command.DBTablesRequest{ | @@ -42,6 +55,19 @@ var GlobalDB []command.DBTablesRequest = []command.DBTablesRequest{ | ||
42 | DBType: "postgresql", | 55 | DBType: "postgresql", |
43 | }, | 56 | }, |
44 | }, | 57 | }, |
58 | + { | ||
59 | + ByteBankDBName: "allied_creation_reporting_system_prd.public", | ||
60 | + ByteBankDBZhName: "销导报表系统(正式)", | ||
61 | + GenerateBusinessTableViewRequest: command.GenerateBusinessTableViewRequest{ | ||
62 | + Host: "114.55.200.59", | ||
63 | + Port: "31544", | ||
64 | + User: "postgres", | ||
65 | + Password: "eagle1010", | ||
66 | + DBName: "allied-creation-reporting-system_prd", | ||
67 | + SchemaName: "public", | ||
68 | + DBType: "postgresql", | ||
69 | + }, | ||
70 | + }, | ||
45 | } | 71 | } |
46 | 72 | ||
47 | func getDB(databaseEnName string) (*command.DBTablesRequest, bool) { | 73 | func getDB(databaseEnName string) (*command.DBTablesRequest, bool) { |
-
请 注册 或 登录 后发表评论