Browse Source

新增报表模块sql

test
smallchill 5 years ago
parent
commit
20f1a528dc
  1. 20
      doc/sql/mysql/bladex-saber-mysql.sql
  2. 20
      doc/sql/mysql/bladex-sword-mysql.sql
  3. 5019
      doc/sql/oracle/bladex-saber-oracle.sql
  4. 6028
      doc/sql/oracle/bladex-sword-oracle.sql
  5. 36
      doc/sql/postgresql/bladex-saber-postgresql.sql
  6. 36
      doc/sql/postgresql/bladex-sword-postgresql.sql
  7. 84
      doc/sql/sqlserver/bladex-saber-sqlserver.sql
  8. 84
      doc/sql/sqlserver/bladex-sword-sqlserver.sql
  9. 37
      doc/sql/update/mysql-update-2.5.1~2.5.2.sql
  10. 44
      doc/sql/update/oracle-update-2.5.1~2.5.2.sql
  11. 44
      doc/sql/update/postgresql-update-2.5.1~2.5.2.sql

20
doc/sql/mysql/bladex-saber-mysql.sql

File diff suppressed because one or more lines are too long

20
doc/sql/mysql/bladex-sword-mysql.sql

File diff suppressed because one or more lines are too long

5019
doc/sql/oracle/bladex-saber-oracle.sql

File diff suppressed because it is too large Load Diff

6028
doc/sql/oracle/bladex-sword-oracle.sql

File diff suppressed because it is too large Load Diff

36
doc/sql/postgresql/bladex-saber-postgresql.sql

@ -12,7 +12,7 @@
Target Server Version : 110001
File Encoding : 65001
Date: 16/07/2020 09:51:00
Date: 06/08/2020 23:35:37
*/
@ -691,6 +691,10 @@ INSERT INTO "blade_menu" VALUES (1164733399669962201, 1123598815738675298, 'atta
INSERT INTO "blade_menu" VALUES (1164733399669962202, 1164733399669962201, 'attach_upload', '上传', 'upload', '/resource/attach/upload', '', 1, 2, 1, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962203, 1164733399669962201, 'attach_download', '下载', 'download', '/resource/attach/download', '', 2, 2, 2, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962204, 1164733399669962201, 'attach_delete', '删除', 'delete', '/api/blade-resource/attach/remove', '', 3, 2, 3, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962301, 0, 'report', '报表管理', 'menu', '/report', 'iconfont icon-shujuzhanshi2', 5, 1, 0, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962302, 1164733399669962301, 'report_setting', '报表配置', 'menu', 'http://localhost:8108/ureport/designer', 'iconfont icon-rizhi', 1, 1, 0, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962303, 1164733399669962301, 'report_list', '报表列表', 'menu', '/report/reportlist', 'iconfont icon-biaodan', 2, 1, 0, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962304, 1164733399669962301, 'report_notice', '公告报表', 'menu', 'http://localhost:8108/ureport/preview?_u=blade-notice.ureport.xml', 'iconfont iconicon_sms', 3, 1, 0, 1, NULL, 0);
COMMIT;
-- ----------------------------
@ -4201,6 +4205,27 @@ INSERT INTO "blade_region" VALUES ('81', '00', '00', '香港特别行政区', '8
INSERT INTO "blade_region" VALUES ('82', '00', '00', '澳门特别行政区', '82', '澳门特别行政区', '', '', '', '', '', '', '', '', 1, 1, '');
COMMIT;
-- ----------------------------
-- Table structure for blade_report_file
-- ----------------------------
DROP TABLE IF EXISTS "blade_report_file";
CREATE TABLE "blade_report_file" (
"id" int8 NOT NULL,
"name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"content" bytea,
"create_time" timestamp(6) NOT NULL,
"update_time" timestamp(6) NOT NULL,
"is_deleted" int4
)
;
COMMENT ON COLUMN "blade_report_file"."id" IS '主键';
COMMENT ON COLUMN "blade_report_file"."name" IS '文件名';
COMMENT ON COLUMN "blade_report_file"."content" IS '文件内容';
COMMENT ON COLUMN "blade_report_file"."create_time" IS '创建时间';
COMMENT ON COLUMN "blade_report_file"."update_time" IS '更新时间';
COMMENT ON COLUMN "blade_report_file"."is_deleted" IS '是否已删除';
COMMENT ON TABLE "blade_report_file" IS '报表文件表';
-- ----------------------------
-- Table structure for blade_role
-- ----------------------------
@ -4507,6 +4532,10 @@ INSERT INTO "blade_role_menu" VALUES (1161272893875227001, 1164733399669962201,
INSERT INTO "blade_role_menu" VALUES (1161272893875227002, 1164733399669962202, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875227003, 1164733399669962203, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875227004, 1164733399669962204, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875228001, 1164733399669962301, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875228002, 1164733399669962302, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875228003, 1164733399669962303, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875228004, 1164733399669962304, 1123598816738675201);
COMMIT;
-- ----------------------------
@ -4963,6 +4992,11 @@ ALTER TABLE "blade_process_leave" ADD CONSTRAINT "blade_process_leave_pkey" PRIM
-- ----------------------------
ALTER TABLE "blade_region" ADD CONSTRAINT "blade_region_pkey" PRIMARY KEY ("code");
-- ----------------------------
-- Primary Key structure for table blade_report_file
-- ----------------------------
ALTER TABLE "blade_report_file" ADD CONSTRAINT "blade_report_file_pkey" PRIMARY KEY ("id");
-- ----------------------------
-- Primary Key structure for table blade_role
-- ----------------------------

36
doc/sql/postgresql/bladex-sword-postgresql.sql

@ -12,7 +12,7 @@
Target Server Version : 110001
File Encoding : 65001
Date: 16/07/2020 09:49:11
Date: 06/08/2020 23:36:24
*/
@ -689,6 +689,10 @@ INSERT INTO "blade_menu" VALUES (1164733399669962201, 1123598815738675298, 'atta
INSERT INTO "blade_menu" VALUES (1164733399669962202, 1164733399669962201, 'attach_upload', '上传', 'upload', '/resource/attach/upload', '', 1, 2, 1, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962203, 1164733399669962201, 'attach_download', '下载', 'download', '/resource/attach/download', '', 2, 2, 2, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962204, 1164733399669962201, 'attach_delete', '删除', 'delete', '/api/blade-resource/attach/remove', '', 3, 2, 3, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962302, 1164733399669962301, 'report_setting', '报表配置', 'menu', 'http://localhost:8108/ureport/designer', '', 1, 1, 0, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962303, 1164733399669962301, 'report_list', '报表列表', 'menu', '/report/reportlist', '', 2, 1, 0, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962304, 1164733399669962301, 'report_notice', '公告报表', 'menu', 'http://localhost:8108/ureport/preview?_u=blade-notice.ureport.xml', '', 3, 1, 0, 1, NULL, 0);
INSERT INTO "blade_menu" VALUES (1164733399669962301, 0, 'report', '报表管理', 'menu', '/report', 'bar-chart', 5, 1, 0, 1, NULL, 0);
COMMIT;
-- ----------------------------
@ -4199,6 +4203,27 @@ INSERT INTO "blade_region" VALUES ('81', '00', '00', '香港特别行政区', '8
INSERT INTO "blade_region" VALUES ('82', '00', '00', '澳门特别行政区', '82', '澳门特别行政区', '', '', '', '', '', '', '', '', 1, 1, '');
COMMIT;
-- ----------------------------
-- Table structure for blade_report_file
-- ----------------------------
DROP TABLE IF EXISTS "blade_report_file";
CREATE TABLE "blade_report_file" (
"id" int8 NOT NULL,
"name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"content" bytea,
"create_time" timestamp(6) NOT NULL,
"update_time" timestamp(6) NOT NULL,
"is_deleted" int4
)
;
COMMENT ON COLUMN "blade_report_file"."id" IS '主键';
COMMENT ON COLUMN "blade_report_file"."name" IS '文件名';
COMMENT ON COLUMN "blade_report_file"."content" IS '文件内容';
COMMENT ON COLUMN "blade_report_file"."create_time" IS '创建时间';
COMMENT ON COLUMN "blade_report_file"."update_time" IS '更新时间';
COMMENT ON COLUMN "blade_report_file"."is_deleted" IS '是否已删除';
COMMENT ON TABLE "blade_report_file" IS '报表文件表';
-- ----------------------------
-- Table structure for blade_role
-- ----------------------------
@ -4505,6 +4530,10 @@ INSERT INTO "blade_role_menu" VALUES (1161272893875227001, 1164733399669962201,
INSERT INTO "blade_role_menu" VALUES (1161272893875227002, 1164733399669962202, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875227003, 1164733399669962203, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875227004, 1164733399669962204, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875228001, 1164733399669962301, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875228002, 1164733399669962302, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875228003, 1164733399669962303, 1123598816738675201);
INSERT INTO "blade_role_menu" VALUES (1161272893875228004, 1164733399669962304, 1123598816738675201);
COMMIT;
-- ----------------------------
@ -4961,6 +4990,11 @@ ALTER TABLE "blade_process_leave" ADD CONSTRAINT "blade_process_leave_pkey" PRIM
-- ----------------------------
ALTER TABLE "blade_region" ADD CONSTRAINT "blade_region_pkey" PRIMARY KEY ("code");
-- ----------------------------
-- Primary Key structure for table blade_report_file
-- ----------------------------
ALTER TABLE "blade_report_file" ADD CONSTRAINT "blade_report_file_pkey" PRIMARY KEY ("id");
-- ----------------------------
-- Primary Key structure for table blade_role
-- ----------------------------

84
doc/sql/sqlserver/bladex-saber-sqlserver.sql

File diff suppressed because one or more lines are too long

84
doc/sql/sqlserver/bladex-sword-sqlserver.sql

File diff suppressed because one or more lines are too long

37
doc/sql/update/mysql-update-2.5.1~2.5.2.sql

@ -55,3 +55,40 @@ INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272893875227003', '1164733399669962203', '1123598816738675201');
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272893875227004', '1164733399669962204', '1123598816738675201');
-- ----------------------------
-- 报表文件表
-- ----------------------------
CREATE TABLE `blade_report_file` (
`id` bigint(64) NOT NULL COMMENT '主键',
`name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '文件名',
`content` mediumblob NULL COMMENT '文件内容',
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间',
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间',
`is_deleted` int(2) NULL DEFAULT 0 COMMENT '是否已删除',
PRIMARY KEY (`id`)
) COMMENT = '报表文件表';
-- ----------------------------
-- 插入报表文件表菜单数据
-- ----------------------------
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1164733399669962301', '0', 'report', '报表管理', 'menu', '/report', 'iconfont icon-shujuzhanshi2', 5, 1, 0, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1164733399669962302', '1164733399669962301', 'report_setting', '报表配置', 'menu', 'http://localhost:8108/ureport/designer', 'iconfont icon-rizhi', 1, 1, 0, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1164733399669962303', '1164733399669962301', 'report_list', '报表列表', 'menu', '/report/reportlist', 'iconfont icon-biaodan', 2, 1, 0, 1, NULL, 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1164733399669962304', '1164733399669962301', 'report_notice', '公告报表', 'menu', 'http://localhost:8108/ureport/preview?_u=blade-notice.ureport.xml', 'iconfont iconicon_sms', 3, 1, 0, 1, NULL, 0);
-- ----------------------------
-- 增加报表文件表菜单权限数据
-- ----------------------------
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272893875228001', '1164733399669962301', '1123598816738675201');
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272893875228002', '1164733399669962302', '1123598816738675201');
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272893875228003', '1164733399669962303', '1123598816738675201');
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272893875228004', '1164733399669962304', '1123598816738675201');

44
doc/sql/update/oracle-update-2.5.1~2.5.2.sql

@ -74,3 +74,47 @@ INSERT INTO "BLADEX"."BLADE_ROLE_MENU"("ID","MENU_ID","ROLE_ID")
VALUES ('1161272893875227003', '1164733399669962203', '1123598816738675201');
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"("ID","MENU_ID","ROLE_ID")
VALUES ('1161272893875227004', '1164733399669962204', '1123598816738675201');
-- ----------------------------
-- 报表文件表
-- ----------------------------
CREATE TABLE "BLADEX"."BLADE_REPORT_FILE" (
"ID" NUMBER(20) NOT NULL ,
"NAME" NVARCHAR2(100) NOT NULL ,
"CONTENT" BLOB ,
"CREATE_TIME" DATE NOT NULL ,
"UPDATE_TIME" DATE NOT NULL ,
"IS_DELETED" NUMBER(11) DEFAULT 0 ,
PRIMARY KEY ("ID")
);
COMMENT ON COLUMN "BLADEX"."BLADE_REPORT_FILE"."ID" IS '主键';
COMMENT ON COLUMN "BLADEX"."BLADE_REPORT_FILE"."NAME" IS '文件名';
COMMENT ON COLUMN "BLADEX"."BLADE_REPORT_FILE"."CONTENT" IS '文件内容';
COMMENT ON COLUMN "BLADEX"."BLADE_REPORT_FILE"."CREATE_TIME" IS '创建时间';
COMMENT ON COLUMN "BLADEX"."BLADE_REPORT_FILE"."UPDATE_TIME" IS '更新时间';
COMMENT ON COLUMN "BLADEX"."BLADE_REPORT_FILE"."IS_DELETED" IS '是否已删除';
COMMENT ON TABLE "BLADEX"."BLADE_REPORT_FILE" IS '报表文件表';
-- ----------------------------
-- 插入报表文件表菜单数据
-- ----------------------------
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733399669962301', '0', 'report', '报表管理', 'menu', '/report', 'iconfont icon-shujuzhanshi2', 5, 1, 0, 1, NULL, 0);
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733399669962302', '1164733399669962301', 'report_setting', '报表配置', 'menu', 'http://localhost:8108/ureport/designer', 'iconfont icon-rizhi', 1, 1, 0, 1, NULL, 0);
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733399669962303', '1164733399669962301', 'report_list', '报表列表', 'menu', '/report/reportlist', 'iconfont icon-biaodan', 2, 1, 0, 1, NULL, 0);
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733399669962304', '1164733399669962301', 'report_notice', '公告报表', 'menu', 'http://localhost:8108/ureport/preview?_u=blade-notice.ureport.xml', 'iconfont iconicon_sms', 3, 1, 0, 1, NULL, 0);
-- ----------------------------
-- 增加报表文件表菜单权限数据
-- ----------------------------
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"("ID","MENU_ID","ROLE_ID")
VALUES ('1161272893875228001', '1164733399669962301', '1123598816738675201');
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"("ID","MENU_ID","ROLE_ID")
VALUES ('1161272893875228002', '1164733399669962302', '1123598816738675201');
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"("ID","MENU_ID","ROLE_ID")
VALUES ('1161272893875228003', '1164733399669962303', '1123598816738675201');
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"("ID","MENU_ID","ROLE_ID")
VALUES ('1161272893875228004', '1164733399669962304', '1123598816738675201');

44
doc/sql/update/postgresql-update-2.5.1~2.5.2.sql

@ -74,3 +74,47 @@ INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272893875227003', '1164733399669962203', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272893875227004', '1164733399669962204', '1123598816738675201');
-- ----------------------------
-- 报表文件表
-- ----------------------------
CREATE TABLE "blade_report_file" (
"id" int8 NOT NULL,
"name" varchar(100) COLLATE "pg_catalog"."default" NOT NULL,
"content" bytea,
"create_time" timestamp(6) NOT NULL,
"update_time" timestamp(6) NOT NULL,
"is_deleted" int4,
PRIMARY KEY ("id")
);
COMMENT ON COLUMN "blade_report_file"."id" IS '主键';
COMMENT ON COLUMN "blade_report_file"."name" IS '文件名';
COMMENT ON COLUMN "blade_report_file"."content" IS '文件内容';
COMMENT ON COLUMN "blade_report_file"."create_time" IS '创建时间';
COMMENT ON COLUMN "blade_report_file"."update_time" IS '更新时间';
COMMENT ON COLUMN "blade_report_file"."is_deleted" IS '是否已删除';
COMMENT ON TABLE "blade_report_file" IS '报表文件表';
-- ----------------------------
-- 插入报表文件表菜单数据
-- ----------------------------
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733399669962301', '0', 'report', '报表管理', 'menu', '/report', 'iconfont icon-shujuzhanshi2', 5, 1, 0, 1, NULL, 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733399669962302', '1164733399669962301', 'report_setting', '报表配置', 'menu', 'http://localhost:8108/ureport/designer', 'iconfont icon-rizhi', 1, 1, 0, 1, NULL, 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733399669962303', '1164733399669962301', 'report_list', '报表列表', 'menu', '/report/reportlist', 'iconfont icon-biaodan', 2, 1, 0, 1, NULL, 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733399669962304', '1164733399669962301', 'report_notice', '公告报表', 'menu', 'http://localhost:8108/ureport/preview?_u=blade-notice.ureport.xml', 'iconfont iconicon_sms', 3, 1, 0, 1, NULL, 0);
-- ----------------------------
-- 增加报表文件表菜单权限数据
-- ----------------------------
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272893875228001', '1164733399669962301', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272893875228002', '1164733399669962302', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272893875228003', '1164733399669962303', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272893875228004', '1164733399669962304', '1123598816738675201');

Loading…
Cancel
Save