Browse Source

🎉 字典增加封存功能

test
smallchill 6 years ago
parent
commit
828c565974
  1. 4
      blade-common/src/main/java/org/springblade/common/constant/CommonConstant.java
  2. 6
      blade-service-api/blade-dict-api/src/main/java/org/springblade/system/entity/Dict.java
  3. 2
      blade-service/blade-system/src/main/java/org/springblade/system/mapper/DictMapper.xml
  4. 3
      doc/sql/mysql/bladex-saber-mysql.sql
  5. 3
      doc/sql/mysql/bladex-sword-mysql.sql
  6. 88
      doc/sql/oracle/bladex-saber-oracle.sql
  7. 88
      doc/sql/oracle/bladex-sword-oracle.sql
  8. 88
      doc/sql/postgresql/bladex-saber-postgresql.sql
  9. 89
      doc/sql/postgresql/bladex-sword-postgresql.sql
  10. 25
      doc/sql/update/mysql-update-2.0.7~2.1.0.sql
  11. 2
      doc/sql/update/mysql-update-2.1.0~2.2.0.sql
  12. 25
      doc/sql/update/oracle-update-2.0.7~2.1.0.sql
  13. 4
      doc/sql/update/oracle-update-2.1.0~2.2.0.sql
  14. 25
      doc/sql/update/postgresql-update-2.0.7~2.1.0.sql
  15. 4
      doc/sql/update/postgresql-update-2.1.0~2.2.0.sql

4
blade-common/src/main/java/org/springblade/common/constant/CommonConstant.java

@ -90,6 +90,10 @@ public interface CommonConstant {
*/
String TOP_PARENT_NAME = "顶级";
/**
* 未封存状态值
*/
Integer NOT_SEALED_ID = 0;
/**
* 默认密码

6
blade-service-api/blade-dict-api/src/main/java/org/springblade/system/entity/Dict.java

@ -85,6 +85,12 @@ public class Dict implements Serializable {
@ApiModelProperty(value = "字典备注")
private String remark;
/**
* 是否已封存
*/
@ApiModelProperty(value = "是否已封存")
private Integer isSealed;
/**
* 是否已删除
*/

2
blade-service/blade-system/src/main/java/org/springblade/system/mapper/DictMapper.xml

@ -46,7 +46,7 @@
</select>-->
<select id="getList" resultMap="dictResultMap">
select code, dict_key, dict_value, sort, remark from blade_dict where code = #{param1} and dict_key >= 0 and is_deleted = 0
select code, dict_key, dict_value, sort, remark from blade_dict where code = #{param1} and dict_key >= 0 and is_sealed = 0 and is_deleted = 0
</select>
<select id="tree" resultMap="treeNodeResultMap">

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

@ -145,6 +145,7 @@ CREATE TABLE `blade_dict` (
`dict_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典名称',
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典备注',
`is_sealed` int(2) NULL DEFAULT 0 COMMENT '是否已封存',
`is_deleted` int(2) NULL DEFAULT 0 COMMENT '是否已删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典表';
@ -153,7 +154,7 @@ CREATE TABLE `blade_dict` (
-- Records of blade_dict
-- ----------------------------
BEGIN;
INSERT INTO `blade_dict` VALUES (1123598814738675201, 0, 'sex', -1, '性别', 1, NULL, 0), (1123598814738675202, 1123598814738675201, 'sex', 1, '', 1, NULL, 0), (1123598814738675203, 1123598814738675201, 'sex', 2, '', 2, NULL, 0), (1123598814738675204, 0, 'notice', -1, '通知类型', 2, NULL, 0), (1123598814738675205, 1123598814738675204, 'notice', 1, '发布通知', 1, NULL, 0), (1123598814738675206, 1123598814738675204, 'notice', 2, '批转通知', 2, NULL, 0), (1123598814738675207, 1123598814738675204, 'notice', 3, '转发通知', 3, NULL, 0), (1123598814738675208, 1123598814738675204, 'notice', 4, '指示通知', 4, NULL, 0), (1123598814738675209, 1123598814738675204, 'notice', 5, '任免通知', 5, NULL, 0), (1123598814738675210, 1123598814738675204, 'notice', 6, '事务通知', 6, NULL, 0), (1123598814738675211, 0, 'menu_category', -1, '菜单类型', 3, NULL, 0), (1123598814738675212, 1123598814738675211, 'menu_category', 1, '菜单', 1, NULL, 0), (1123598814738675213, 1123598814738675211, 'menu_category', 2, '按钮', 2, NULL, 0), (1123598814738675214, 0, 'button_func', -1, '按钮功能', 4, NULL, 0), (1123598814738675215, 1123598814738675214, 'button_func', 1, '工具栏', 1, NULL, 0), (1123598814738675216, 1123598814738675214, 'button_func', 2, '操作栏', 2, NULL, 0), (1123598814738675217, 1123598814738675214, 'button_func', 3, '工具操作栏', 3, NULL, 0), (1123598814738675218, 0, 'yes_no', -1, '是否', 5, NULL, 0), (1123598814738675219, 1123598814738675218, 'yes_no', 1, '', 1, NULL, 0), (1123598814738675220, 1123598814738675218, 'yes_no', 2, '', 2, NULL, 0), (1123598814738675221, 0, 'flow', -1, '流程类型', 5, NULL, 0), (1123598814738675222, 1123598814738675221, 'flow', 1, '请假流程', 1, 'leave', 0), (1123598814738675223, 1123598814738675221, 'flow', 2, '报销流程', 2, 'expense', 0), (1123598814738675227, 0, 'org_category', -1, '机构类型', 7, NULL, 0), (1123598814738675228, 1123598814738675227, 'org_category', 1, '公司', 1, NULL, 0), (1123598814738675229, 1123598814738675227, 'org_category', 2, '部门', 2, NULL, 0), (1123598814738675230, 1123598814738675227, 'org_category', 3, '小组', 3, NULL, 0), (1123598814738675231, 0, 'data_scope_type', -1, '数据权限', 8, NULL, 0), (1123598814738675232, 1123598814738675231, 'data_scope_type', 1, '全部可见', 1, NULL, 0), (1123598814738675233, 1123598814738675231, 'data_scope_type', 2, '本人可见', 2, NULL, 0), (1123598814738675234, 1123598814738675231, 'data_scope_type', 3, '所在机构可见', 3, NULL, 0), (1123598814738675235, 1123598814738675231, 'data_scope_type', 4, '所在机构及子级可见', 4, NULL, 0), (1123598814738675236, 1123598814738675231, 'data_scope_type', 5, '自定义', 5, NULL, 0), (1123598814738675237, 0, 'api_scope_type', -1, '接口权限', 10, NULL, 0), (1123598814738675238, 1123598814738675237, 'api_scope_type', 1, '系统接口', 1, NULL, 0), (1123598814738675239, 1123598814738675237, 'api_scope_type', 2, '业务接口', 2, NULL, 0), (1123598814738675240, 0, 'scope_category', -1, '权限类型', 10, NULL, 0), (1123598814738675241, 1123598814738675240, 'scope_category', 1, '数据权限', 1, NULL, 0), (1123598814738675242, 1123598814738675240, 'scope_category', 2, '接口权限', 2, NULL, 0), (1123598814738676224, 0, 'oss', -1, '对象存储类型', 6, NULL, 0),(1123598814738676225, 1123598814738676224, 'oss', 1, 'minio', 1, NULL, 0),(1123598814738676226, 1123598814738676224, 'oss', 2, 'qiniu', 2, NULL, 0),(1123598814738676227, 1123598814738676224, 'oss', 3, 'ali', 3, NULL, 0);
INSERT INTO `blade_dict` VALUES (1123598814738675201, 0, 'sex', -1, '性别', 1, NULL, 0, 0), (1123598814738675202, 1123598814738675201, 'sex', 1, '', 1, NULL, 0, 0), (1123598814738675203, 1123598814738675201, 'sex', 2, '', 2, NULL, 0, 0), (1123598814738675204, 0, 'notice', -1, '通知类型', 2, NULL, 0, 0), (1123598814738675205, 1123598814738675204, 'notice', 1, '发布通知', 1, NULL, 0, 0), (1123598814738675206, 1123598814738675204, 'notice', 2, '批转通知', 2, NULL, 0, 0), (1123598814738675207, 1123598814738675204, 'notice', 3, '转发通知', 3, NULL, 0, 0), (1123598814738675208, 1123598814738675204, 'notice', 4, '指示通知', 4, NULL, 0, 0), (1123598814738675209, 1123598814738675204, 'notice', 5, '任免通知', 5, NULL, 0, 0), (1123598814738675210, 1123598814738675204, 'notice', 6, '事务通知', 6, NULL, 0, 0), (1123598814738675211, 0, 'menu_category', -1, '菜单类型', 3, NULL, 0, 0), (1123598814738675212, 1123598814738675211, 'menu_category', 1, '菜单', 1, NULL, 0, 0), (1123598814738675213, 1123598814738675211, 'menu_category', 2, '按钮', 2, NULL, 0, 0), (1123598814738675214, 0, 'button_func', -1, '按钮功能', 4, NULL, 0, 0), (1123598814738675215, 1123598814738675214, 'button_func', 1, '工具栏', 1, NULL, 0, 0), (1123598814738675216, 1123598814738675214, 'button_func', 2, '操作栏', 2, NULL, 0, 0), (1123598814738675217, 1123598814738675214, 'button_func', 3, '工具操作栏', 3, NULL, 0, 0), (1123598814738675218, 0, 'yes_no', -1, '是否', 5, NULL, 0, 0), (1123598814738675219, 1123598814738675218, 'yes_no', 1, '', 1, NULL, 0, 0), (1123598814738675220, 1123598814738675218, 'yes_no', 2, '', 2, NULL, 0, 0), (1123598814738675221, 0, 'flow', -1, '流程类型', 5, NULL, 0, 0), (1123598814738675222, 1123598814738675221, 'flow', 1, '请假流程', 1, 'leave', 0, 0), (1123598814738675223, 1123598814738675221, 'flow', 2, '报销流程', 2, 'expense', 0, 0), (1123598814738675227, 0, 'org_category', -1, '机构类型', 7, NULL, 0, 0), (1123598814738675228, 1123598814738675227, 'org_category', 1, '公司', 1, NULL, 0, 0), (1123598814738675229, 1123598814738675227, 'org_category', 2, '部门', 2, NULL, 0, 0), (1123598814738675230, 1123598814738675227, 'org_category', 3, '小组', 3, NULL, 0, 0), (1123598814738675231, 0, 'data_scope_type', -1, '数据权限', 8, NULL, 0, 0), (1123598814738675232, 1123598814738675231, 'data_scope_type', 1, '全部可见', 1, NULL, 0, 0), (1123598814738675233, 1123598814738675231, 'data_scope_type', 2, '本人可见', 2, NULL, 0, 0), (1123598814738675234, 1123598814738675231, 'data_scope_type', 3, '所在机构可见', 3, NULL, 0, 0), (1123598814738675235, 1123598814738675231, 'data_scope_type', 4, '所在机构及子级可见', 4, NULL, 0, 0), (1123598814738675236, 1123598814738675231, 'data_scope_type', 5, '自定义', 5, NULL, 0, 0), (1123598814738675237, 0, 'api_scope_type', -1, '接口权限', 10, NULL, 0, 0), (1123598814738675238, 1123598814738675237, 'api_scope_type', 1, '系统接口', 1, NULL, 0, 0), (1123598814738675239, 1123598814738675237, 'api_scope_type', 2, '业务接口', 2, NULL, 0, 0), (1123598814738675240, 0, 'scope_category', -1, '权限类型', 10, NULL, 0, 0), (1123598814738675241, 1123598814738675240, 'scope_category', 1, '数据权限', 1, NULL, 0, 0), (1123598814738675242, 1123598814738675240, 'scope_category', 2, '接口权限', 2, NULL, 0, 0), (1123598814738676224, 0, 'oss', -1, '对象存储类型', 6, NULL, 0, 0),(1123598814738676225, 1123598814738676224, 'oss', 1, 'minio', 1, NULL, 0, 0),(1123598814738676226, 1123598814738676224, 'oss', 2, 'qiniu', 2, NULL, 0, 0),(1123598814738676227, 1123598814738676224, 'oss', 3, 'ali', 3, NULL, 0, 0);
COMMIT;
-- ----------------------------

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

@ -145,6 +145,7 @@ CREATE TABLE `blade_dict` (
`dict_value` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典名称',
`sort` int(11) NULL DEFAULT NULL COMMENT '排序',
`remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '字典备注',
`is_sealed` int(2) NULL DEFAULT 0 COMMENT '是否已封存',
`is_deleted` int(2) NULL DEFAULT 0 COMMENT '是否已删除',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '字典表';
@ -153,7 +154,7 @@ CREATE TABLE `blade_dict` (
-- Records of blade_dict
-- ----------------------------
BEGIN;
INSERT INTO `blade_dict` VALUES (1123598814738675201, 0, 'sex', -1, '性别', 1, NULL, 0), (1123598814738675202, 1123598814738675201, 'sex', 1, '', 1, NULL, 0), (1123598814738675203, 1123598814738675201, 'sex', 2, '', 2, NULL, 0), (1123598814738675204, 0, 'notice', -1, '通知类型', 2, NULL, 0), (1123598814738675205, 1123598814738675204, 'notice', 1, '发布通知', 1, NULL, 0), (1123598814738675206, 1123598814738675204, 'notice', 2, '批转通知', 2, NULL, 0), (1123598814738675207, 1123598814738675204, 'notice', 3, '转发通知', 3, NULL, 0), (1123598814738675208, 1123598814738675204, 'notice', 4, '指示通知', 4, NULL, 0), (1123598814738675209, 1123598814738675204, 'notice', 5, '任免通知', 5, NULL, 0), (1123598814738675210, 1123598814738675204, 'notice', 6, '事务通知', 6, NULL, 0), (1123598814738675211, 0, 'menu_category', -1, '菜单类型', 3, NULL, 0), (1123598814738675212, 1123598814738675211, 'menu_category', 1, '菜单', 1, NULL, 0), (1123598814738675213, 1123598814738675211, 'menu_category', 2, '按钮', 2, NULL, 0), (1123598814738675214, 0, 'button_func', -1, '按钮功能', 4, NULL, 0), (1123598814738675215, 1123598814738675214, 'button_func', 1, '工具栏', 1, NULL, 0), (1123598814738675216, 1123598814738675214, 'button_func', 2, '操作栏', 2, NULL, 0), (1123598814738675217, 1123598814738675214, 'button_func', 3, '工具操作栏', 3, NULL, 0), (1123598814738675218, 0, 'yes_no', -1, '是否', 5, NULL, 0), (1123598814738675219, 1123598814738675218, 'yes_no', 1, '', 1, NULL, 0), (1123598814738675220, 1123598814738675218, 'yes_no', 2, '', 2, NULL, 0), (1123598814738675221, 0, 'flow', -1, '流程类型', 5, NULL, 0), (1123598814738675222, 1123598814738675221, 'flow', 1, '请假流程', 1, 'leave', 0), (1123598814738675223, 1123598814738675221, 'flow', 2, '报销流程', 2, 'expense', 0), (1123598814738675227, 0, 'org_category', -1, '机构类型', 7, NULL, 0), (1123598814738675228, 1123598814738675227, 'org_category', 1, '公司', 1, NULL, 0), (1123598814738675229, 1123598814738675227, 'org_category', 2, '部门', 2, NULL, 0), (1123598814738675230, 1123598814738675227, 'org_category', 3, '小组', 3, NULL, 0), (1123598814738675231, 0, 'data_scope_type', -1, '数据权限', 8, NULL, 0), (1123598814738675232, 1123598814738675231, 'data_scope_type', 1, '全部可见', 1, NULL, 0), (1123598814738675233, 1123598814738675231, 'data_scope_type', 2, '本人可见', 2, NULL, 0), (1123598814738675234, 1123598814738675231, 'data_scope_type', 3, '所在机构可见', 3, NULL, 0), (1123598814738675235, 1123598814738675231, 'data_scope_type', 4, '所在机构及子级可见', 4, NULL, 0), (1123598814738675236, 1123598814738675231, 'data_scope_type', 5, '自定义', 5, NULL, 0), (1123598814738675237, 0, 'api_scope_type', -1, '接口权限', 10, NULL, 0), (1123598814738675238, 1123598814738675237, 'api_scope_type', 1, '系统接口', 1, NULL, 0), (1123598814738675239, 1123598814738675237, 'api_scope_type', 2, '业务接口', 2, NULL, 0), (1123598814738675240, 0, 'scope_category', -1, '权限类型', 10, NULL, 0), (1123598814738675241, 1123598814738675240, 'scope_category', 1, '数据权限', 1, NULL, 0), (1123598814738675242, 1123598814738675240, 'scope_category', 2, '接口权限', 2, NULL, 0), (1123598814738676224, 0, 'oss', -1, '对象存储类型', 6, NULL, 0),(1123598814738676225, 1123598814738676224, 'oss', 1, 'minio', 1, NULL, 0),(1123598814738676226, 1123598814738676224, 'oss', 2, 'qiniu', 2, NULL, 0),(1123598814738676227, 1123598814738676224, 'oss', 3, 'ali', 3, NULL, 0);
INSERT INTO `blade_dict` VALUES (1123598814738675201, 0, 'sex', -1, '性别', 1, NULL, 0, 0), (1123598814738675202, 1123598814738675201, 'sex', 1, '', 1, NULL, 0, 0), (1123598814738675203, 1123598814738675201, 'sex', 2, '', 2, NULL, 0, 0), (1123598814738675204, 0, 'notice', -1, '通知类型', 2, NULL, 0, 0), (1123598814738675205, 1123598814738675204, 'notice', 1, '发布通知', 1, NULL, 0, 0), (1123598814738675206, 1123598814738675204, 'notice', 2, '批转通知', 2, NULL, 0, 0), (1123598814738675207, 1123598814738675204, 'notice', 3, '转发通知', 3, NULL, 0, 0), (1123598814738675208, 1123598814738675204, 'notice', 4, '指示通知', 4, NULL, 0, 0), (1123598814738675209, 1123598814738675204, 'notice', 5, '任免通知', 5, NULL, 0, 0), (1123598814738675210, 1123598814738675204, 'notice', 6, '事务通知', 6, NULL, 0, 0), (1123598814738675211, 0, 'menu_category', -1, '菜单类型', 3, NULL, 0, 0), (1123598814738675212, 1123598814738675211, 'menu_category', 1, '菜单', 1, NULL, 0, 0), (1123598814738675213, 1123598814738675211, 'menu_category', 2, '按钮', 2, NULL, 0, 0), (1123598814738675214, 0, 'button_func', -1, '按钮功能', 4, NULL, 0, 0), (1123598814738675215, 1123598814738675214, 'button_func', 1, '工具栏', 1, NULL, 0, 0), (1123598814738675216, 1123598814738675214, 'button_func', 2, '操作栏', 2, NULL, 0, 0), (1123598814738675217, 1123598814738675214, 'button_func', 3, '工具操作栏', 3, NULL, 0, 0), (1123598814738675218, 0, 'yes_no', -1, '是否', 5, NULL, 0, 0), (1123598814738675219, 1123598814738675218, 'yes_no', 1, '', 1, NULL, 0, 0), (1123598814738675220, 1123598814738675218, 'yes_no', 2, '', 2, NULL, 0, 0), (1123598814738675221, 0, 'flow', -1, '流程类型', 5, NULL, 0, 0), (1123598814738675222, 1123598814738675221, 'flow', 1, '请假流程', 1, 'leave', 0, 0), (1123598814738675223, 1123598814738675221, 'flow', 2, '报销流程', 2, 'expense', 0, 0), (1123598814738675227, 0, 'org_category', -1, '机构类型', 7, NULL, 0, 0), (1123598814738675228, 1123598814738675227, 'org_category', 1, '公司', 1, NULL, 0, 0), (1123598814738675229, 1123598814738675227, 'org_category', 2, '部门', 2, NULL, 0, 0), (1123598814738675230, 1123598814738675227, 'org_category', 3, '小组', 3, NULL, 0, 0), (1123598814738675231, 0, 'data_scope_type', -1, '数据权限', 8, NULL, 0, 0), (1123598814738675232, 1123598814738675231, 'data_scope_type', 1, '全部可见', 1, NULL, 0, 0), (1123598814738675233, 1123598814738675231, 'data_scope_type', 2, '本人可见', 2, NULL, 0, 0), (1123598814738675234, 1123598814738675231, 'data_scope_type', 3, '所在机构可见', 3, NULL, 0, 0), (1123598814738675235, 1123598814738675231, 'data_scope_type', 4, '所在机构及子级可见', 4, NULL, 0, 0), (1123598814738675236, 1123598814738675231, 'data_scope_type', 5, '自定义', 5, NULL, 0, 0), (1123598814738675237, 0, 'api_scope_type', -1, '接口权限', 10, NULL, 0, 0), (1123598814738675238, 1123598814738675237, 'api_scope_type', 1, '系统接口', 1, NULL, 0, 0), (1123598814738675239, 1123598814738675237, 'api_scope_type', 2, '业务接口', 2, NULL, 0, 0), (1123598814738675240, 0, 'scope_category', -1, '权限类型', 10, NULL, 0, 0), (1123598814738675241, 1123598814738675240, 'scope_category', 1, '数据权限', 1, NULL, 0, 0), (1123598814738675242, 1123598814738675240, 'scope_category', 2, '接口权限', 2, NULL, 0, 0), (1123598814738676224, 0, 'oss', -1, '对象存储类型', 6, NULL, 0, 0),(1123598814738676225, 1123598814738676224, 'oss', 1, 'minio', 1, NULL, 0, 0),(1123598814738676226, 1123598814738676224, 'oss', 2, 'qiniu', 2, NULL, 0, 0),(1123598814738676227, 1123598814738676224, 'oss', 3, 'ali', 3, NULL, 0, 0);
COMMIT;
-- ----------------------------

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

@ -264,6 +264,7 @@ CREATE TABLE "BLADE_DICT" (
"DICT_VALUE" NVARCHAR2(255) ,
"SORT" NUMBER(11) ,
"REMARK" NVARCHAR2(255) ,
"IS_SEALED" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
@ -289,55 +290,56 @@ COMMENT ON COLUMN "BLADE_DICT"."DICT_KEY" IS '字典值';
COMMENT ON COLUMN "BLADE_DICT"."DICT_VALUE" IS '字典名称';
COMMENT ON COLUMN "BLADE_DICT"."SORT" IS '排序';
COMMENT ON COLUMN "BLADE_DICT"."REMARK" IS '字典备注';
COMMENT ON COLUMN "BLADE_DICT"."IS_SEAL" IS '是否已删除';
COMMENT ON COLUMN "BLADE_DICT"."IS_DELETED" IS '是否已删除';
COMMENT ON TABLE "BLADE_DICT" IS '字典表';
-- ----------------------------
-- Records of BLADE_DICT
-- ----------------------------
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675201', '0', 'sex', '-1', '性别', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675202', '1123598814738675201', 'sex', '1', '', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675203', '1123598814738675201', 'sex', '2', '', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675204', '0', 'notice', '-1', '通知类型', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675205', '1123598814738675204', 'notice', '1', '发布通知', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675206', '1123598814738675204', 'notice', '2', '批转通知', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675207', '1123598814738675204', 'notice', '3', '转发通知', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675208', '1123598814738675204', 'notice', '4', '指示通知', '4', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675209', '1123598814738675204', 'notice', '5', '任免通知', '5', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675210', '1123598814738675204', 'notice', '6', '事务通知', '6', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675211', '0', 'menu_category', '-1', '菜单类型', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675212', '1123598814738675211', 'menu_category', '1', '菜单', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675213', '1123598814738675211', 'menu_category', '2', '按钮', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675214', '0', 'button_func', '-1', '按钮功能', '4', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675215', '1123598814738675214', 'button_func', '1', '工具栏', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675216', '1123598814738675214', 'button_func', '2', '操作栏', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675217', '1123598814738675214', 'button_func', '3', '工具操作栏', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675218', '0', 'yes_no', '-1', '是否', '5', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675219', '1123598814738675218', 'yes_no', '1', '', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675220', '1123598814738675218', 'yes_no', '2', '', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675221', '0', 'flow', '-1', '流程类型', '5', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675222', '1123598814738675221', 'flow', '1', '请假流程', '1', 'leave', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675223', '1123598814738675221', 'flow', '2', '报销流程', '2', 'expense', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675227', '0', 'org_category', '-1', '机构类型', '7', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675228', '1123598814738675227', 'org_category', '1', '公司', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675229', '1123598814738675227', 'org_category', '2', '部门', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675230', '1123598814738675227', 'org_category', '3', '小组', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675231', '0', 'data_scope_type', '-1', '数据权限', '8', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675232', '1123598814738675231', 'data_scope_type', '1', '全部可见', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675233', '1123598814738675231', 'data_scope_type', '2', '本人可见', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675234', '1123598814738675231', 'data_scope_type', '3', '所在机构可见', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675235', '1123598814738675231', 'data_scope_type', '4', '所在机构及子级可见', '4', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675236', '1123598814738675231', 'data_scope_type', '5', '自定义', '5', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675237', '0', 'api_scope_type', '-1', '接口权限', '10', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675238', '1123598814738675237', 'api_scope_type', '1', '系统接口', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675239', '1123598814738675237', 'api_scope_type', '2', '业务接口', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675240', '0', 'scope_category', '-1', '权限类型', '10', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675241', '1123598814738675240', 'scope_category', '1', '数据权限', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675242', '1123598814738675240', 'scope_category', '2', '接口权限', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676224', '0', 'oss', '-1', '对象存储类型', '6', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676225', '1123598814738676224', 'oss', '1', 'minio', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676226', '1123598814738676224', 'oss', '2', 'qiniu', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676227', '1123598814738676224', 'oss', '3', 'ali', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675201', '0', 'sex', '-1', '性别', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675202', '1123598814738675201', 'sex', '1', '', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675203', '1123598814738675201', 'sex', '2', '', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675204', '0', 'notice', '-1', '通知类型', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675205', '1123598814738675204', 'notice', '1', '发布通知', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675206', '1123598814738675204', 'notice', '2', '批转通知', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675207', '1123598814738675204', 'notice', '3', '转发通知', '3', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675208', '1123598814738675204', 'notice', '4', '指示通知', '4', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675209', '1123598814738675204', 'notice', '5', '任免通知', '5', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675210', '1123598814738675204', 'notice', '6', '事务通知', '6', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675211', '0', 'menu_category', '-1', '菜单类型', '3', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675212', '1123598814738675211', 'menu_category', '1', '菜单', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675213', '1123598814738675211', 'menu_category', '2', '按钮', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675214', '0', 'button_func', '-1', '按钮功能', '4', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675215', '1123598814738675214', 'button_func', '1', '工具栏', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675216', '1123598814738675214', 'button_func', '2', '操作栏', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675217', '1123598814738675214', 'button_func', '3', '工具操作栏', '3', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675218', '0', 'yes_no', '-1', '是否', '5', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675219', '1123598814738675218', 'yes_no', '1', '', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675220', '1123598814738675218', 'yes_no', '2', '', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675221', '0', 'flow', '-1', '流程类型', '5', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675222', '1123598814738675221', 'flow', '1', '请假流程', '1', 'leave', '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675223', '1123598814738675221', 'flow', '2', '报销流程', '2', 'expense', '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675227', '0', 'org_category', '-1', '机构类型', '7', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675228', '1123598814738675227', 'org_category', '1', '公司', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675229', '1123598814738675227', 'org_category', '2', '部门', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675230', '1123598814738675227', 'org_category', '3', '小组', '3', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675231', '0', 'data_scope_type', '-1', '数据权限', '8', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675232', '1123598814738675231', 'data_scope_type', '1', '全部可见', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675233', '1123598814738675231', 'data_scope_type', '2', '本人可见', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675234', '1123598814738675231', 'data_scope_type', '3', '所在机构可见', '3', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675235', '1123598814738675231', 'data_scope_type', '4', '所在机构及子级可见', '4', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675236', '1123598814738675231', 'data_scope_type', '5', '自定义', '5', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675237', '0', 'api_scope_type', '-1', '接口权限', '10', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675238', '1123598814738675237', 'api_scope_type', '1', '系统接口', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675239', '1123598814738675237', 'api_scope_type', '2', '业务接口', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675240', '0', 'scope_category', '-1', '权限类型', '10', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675241', '1123598814738675240', 'scope_category', '1', '数据权限', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675242', '1123598814738675240', 'scope_category', '2', '接口权限', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676224', '0', 'oss', '-1', '对象存储类型', '6', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676225', '1123598814738676224', 'oss', '1', 'minio', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676226', '1123598814738676224', 'oss', '2', 'qiniu', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676227', '1123598814738676224', 'oss', '3', 'ali', '3', NULL, '0', '0');
COMMIT;
-- ----------------------------

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

@ -264,6 +264,7 @@ CREATE TABLE "BLADE_DICT" (
"DICT_VALUE" NVARCHAR2(255) ,
"SORT" NUMBER(11) ,
"REMARK" NVARCHAR2(255) ,
"IS_SEALED" NUMBER(11) ,
"IS_DELETED" NUMBER(11)
)
TABLESPACE "BLADEX"
@ -289,55 +290,56 @@ COMMENT ON COLUMN "BLADE_DICT"."DICT_KEY" IS '字典值';
COMMENT ON COLUMN "BLADE_DICT"."DICT_VALUE" IS '字典名称';
COMMENT ON COLUMN "BLADE_DICT"."SORT" IS '排序';
COMMENT ON COLUMN "BLADE_DICT"."REMARK" IS '字典备注';
COMMENT ON COLUMN "BLADE_DICT"."IS_SEAL" IS '是否已删除';
COMMENT ON COLUMN "BLADE_DICT"."IS_DELETED" IS '是否已删除';
COMMENT ON TABLE "BLADE_DICT" IS '字典表';
-- ----------------------------
-- Records of BLADE_DICT
-- ----------------------------
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675201', '0', 'sex', '-1', '性别', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675202', '1123598814738675201', 'sex', '1', '', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675203', '1123598814738675201', 'sex', '2', '', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675204', '0', 'notice', '-1', '通知类型', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675205', '1123598814738675204', 'notice', '1', '发布通知', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675206', '1123598814738675204', 'notice', '2', '批转通知', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675207', '1123598814738675204', 'notice', '3', '转发通知', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675208', '1123598814738675204', 'notice', '4', '指示通知', '4', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675209', '1123598814738675204', 'notice', '5', '任免通知', '5', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675210', '1123598814738675204', 'notice', '6', '事务通知', '6', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675211', '0', 'menu_category', '-1', '菜单类型', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675212', '1123598814738675211', 'menu_category', '1', '菜单', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675213', '1123598814738675211', 'menu_category', '2', '按钮', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675214', '0', 'button_func', '-1', '按钮功能', '4', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675215', '1123598814738675214', 'button_func', '1', '工具栏', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675216', '1123598814738675214', 'button_func', '2', '操作栏', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675217', '1123598814738675214', 'button_func', '3', '工具操作栏', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675218', '0', 'yes_no', '-1', '是否', '5', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675219', '1123598814738675218', 'yes_no', '1', '', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675220', '1123598814738675218', 'yes_no', '2', '', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675221', '0', 'flow', '-1', '流程类型', '5', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675222', '1123598814738675221', 'flow', '1', '请假流程', '1', 'leave', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675223', '1123598814738675221', 'flow', '2', '报销流程', '2', 'expense', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675227', '0', 'org_category', '-1', '机构类型', '7', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675228', '1123598814738675227', 'org_category', '1', '公司', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675229', '1123598814738675227', 'org_category', '2', '部门', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675230', '1123598814738675227', 'org_category', '3', '小组', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675231', '0', 'data_scope_type', '-1', '数据权限', '8', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675232', '1123598814738675231', 'data_scope_type', '1', '全部可见', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675233', '1123598814738675231', 'data_scope_type', '2', '本人可见', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675234', '1123598814738675231', 'data_scope_type', '3', '所在机构可见', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675235', '1123598814738675231', 'data_scope_type', '4', '所在机构及子级可见', '4', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675236', '1123598814738675231', 'data_scope_type', '5', '自定义', '5', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675237', '0', 'api_scope_type', '-1', '接口权限', '10', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675238', '1123598814738675237', 'api_scope_type', '1', '系统接口', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675239', '1123598814738675237', 'api_scope_type', '2', '业务接口', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675240', '0', 'scope_category', '-1', '权限类型', '10', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675241', '1123598814738675240', 'scope_category', '1', '数据权限', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675242', '1123598814738675240', 'scope_category', '2', '接口权限', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676224', '0', 'oss', '-1', '对象存储类型', '6', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676225', '1123598814738676224', 'oss', '1', 'minio', '1', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676226', '1123598814738676224', 'oss', '2', 'qiniu', '2', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676227', '1123598814738676224', 'oss', '3', 'ali', '3', NULL, '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675201', '0', 'sex', '-1', '性别', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675202', '1123598814738675201', 'sex', '1', '', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675203', '1123598814738675201', 'sex', '2', '', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675204', '0', 'notice', '-1', '通知类型', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675205', '1123598814738675204', 'notice', '1', '发布通知', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675206', '1123598814738675204', 'notice', '2', '批转通知', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675207', '1123598814738675204', 'notice', '3', '转发通知', '3', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675208', '1123598814738675204', 'notice', '4', '指示通知', '4', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675209', '1123598814738675204', 'notice', '5', '任免通知', '5', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675210', '1123598814738675204', 'notice', '6', '事务通知', '6', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675211', '0', 'menu_category', '-1', '菜单类型', '3', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675212', '1123598814738675211', 'menu_category', '1', '菜单', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675213', '1123598814738675211', 'menu_category', '2', '按钮', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675214', '0', 'button_func', '-1', '按钮功能', '4', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675215', '1123598814738675214', 'button_func', '1', '工具栏', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675216', '1123598814738675214', 'button_func', '2', '操作栏', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675217', '1123598814738675214', 'button_func', '3', '工具操作栏', '3', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675218', '0', 'yes_no', '-1', '是否', '5', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675219', '1123598814738675218', 'yes_no', '1', '', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675220', '1123598814738675218', 'yes_no', '2', '', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675221', '0', 'flow', '-1', '流程类型', '5', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675222', '1123598814738675221', 'flow', '1', '请假流程', '1', 'leave', '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675223', '1123598814738675221', 'flow', '2', '报销流程', '2', 'expense', '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675227', '0', 'org_category', '-1', '机构类型', '7', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675228', '1123598814738675227', 'org_category', '1', '公司', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675229', '1123598814738675227', 'org_category', '2', '部门', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675230', '1123598814738675227', 'org_category', '3', '小组', '3', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675231', '0', 'data_scope_type', '-1', '数据权限', '8', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675232', '1123598814738675231', 'data_scope_type', '1', '全部可见', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675233', '1123598814738675231', 'data_scope_type', '2', '本人可见', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675234', '1123598814738675231', 'data_scope_type', '3', '所在机构可见', '3', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675235', '1123598814738675231', 'data_scope_type', '4', '所在机构及子级可见', '4', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675236', '1123598814738675231', 'data_scope_type', '5', '自定义', '5', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675237', '0', 'api_scope_type', '-1', '接口权限', '10', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675238', '1123598814738675237', 'api_scope_type', '1', '系统接口', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675239', '1123598814738675237', 'api_scope_type', '2', '业务接口', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675240', '0', 'scope_category', '-1', '权限类型', '10', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675241', '1123598814738675240', 'scope_category', '1', '数据权限', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738675242', '1123598814738675240', 'scope_category', '2', '接口权限', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676224', '0', 'oss', '-1', '对象存储类型', '6', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676225', '1123598814738676224', 'oss', '1', 'minio', '1', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676226', '1123598814738676224', 'oss', '2', 'qiniu', '2', NULL, '0', '0');
INSERT INTO "BLADE_DICT" VALUES ('1123598814738676227', '1123598814738676224', 'oss', '3', 'ali', '3', NULL, '0', '0');
COMMIT;
-- ----------------------------

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

@ -209,6 +209,7 @@ CREATE TABLE "blade_dict" (
"dict_value" varchar(255) COLLATE "pg_catalog"."default",
"sort" int4,
"remark" varchar(255) COLLATE "pg_catalog"."default",
"is_sealed" int4,
"is_deleted" int4
)
;
@ -219,6 +220,7 @@ COMMENT ON COLUMN "blade_dict"."dict_key" IS '字典值';
COMMENT ON COLUMN "blade_dict"."dict_value" IS '字典名称';
COMMENT ON COLUMN "blade_dict"."sort" IS '排序';
COMMENT ON COLUMN "blade_dict"."remark" IS '字典备注';
COMMENT ON COLUMN "blade_dict"."is_seal" IS '是否已封存';
COMMENT ON COLUMN "blade_dict"."is_deleted" IS '是否已删除';
COMMENT ON TABLE "blade_dict" IS '字典表';
@ -226,49 +228,49 @@ COMMENT ON TABLE "blade_dict" IS '字典表';
-- Records of blade_dict
-- ----------------------------
BEGIN;
INSERT INTO "blade_dict" VALUES (1123598814738675201, 0, 'sex', -1, '性别', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675202, 1123598814738675201, 'sex', 1, '', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675203, 1123598814738675201, 'sex', 2, '', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675204, 0, 'notice', -1, '通知类型', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675205, 1123598814738675204, 'notice', 1, '发布通知', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675206, 1123598814738675204, 'notice', 2, '批转通知', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675207, 1123598814738675204, 'notice', 3, '转发通知', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675208, 1123598814738675204, 'notice', 4, '指示通知', 4, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675209, 1123598814738675204, 'notice', 5, '任免通知', 5, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675210, 1123598814738675204, 'notice', 6, '事务通知', 6, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675211, 0, 'menu_category', -1, '菜单类型', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675212, 1123598814738675211, 'menu_category', 1, '菜单', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675213, 1123598814738675211, 'menu_category', 2, '按钮', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675214, 0, 'button_func', -1, '按钮功能', 4, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675215, 1123598814738675214, 'button_func', 1, '工具栏', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675216, 1123598814738675214, 'button_func', 2, '操作栏', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675217, 1123598814738675214, 'button_func', 3, '工具操作栏', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675218, 0, 'yes_no', -1, '是否', 5, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675219, 1123598814738675218, 'yes_no', 1, '', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675220, 1123598814738675218, 'yes_no', 2, '', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675221, 0, 'flow', -1, '流程类型', 5, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675222, 1123598814738675221, 'flow', 1, '请假流程', 1, 'leave', 0);
INSERT INTO "blade_dict" VALUES (1123598814738675223, 1123598814738675221, 'flow', 2, '报销流程', 2, 'expense', 0);
INSERT INTO "blade_dict" VALUES (1123598814738675227, 0, 'org_category', -1, '机构类型', 7, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675228, 1123598814738675227, 'org_category', 1, '公司', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675229, 1123598814738675227, 'org_category', 2, '部门', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675230, 1123598814738675227, 'org_category', 3, '小组', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675231, 0, 'data_scope_type', -1, '数据权限', 8, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675232, 1123598814738675231, 'data_scope_type', 1, '全部可见', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675233, 1123598814738675231, 'data_scope_type', 2, '本人可见', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675234, 1123598814738675231, 'data_scope_type', 3, '所在机构可见', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675235, 1123598814738675231, 'data_scope_type', 4, '所在机构及子级可见', 4, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675236, 1123598814738675231, 'data_scope_type', 5, '自定义', 5, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675237, 0, 'api_scope_type', -1, '接口权限', 10, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675238, 1123598814738675237, 'api_scope_type', 1, '系统接口', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675239, 1123598814738675237, 'api_scope_type', 2, '业务接口', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675240, 0, 'scope_category', -1, '权限类型', 10, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675241, 1123598814738675240, 'scope_category', 1, '数据权限', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675242, 1123598814738675240, 'scope_category', 2, '接口权限', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676224, 0, 'oss', -1, '对象存储类型', 6, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676225, 1123598814738676224, 'oss', 1, 'minio', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676226, 1123598814738676224, 'oss', 2, 'qiniu', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676227, 1123598814738676224, 'oss', 3, 'ali', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675201, 0, 'sex', -1, '性别', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675202, 1123598814738675201, 'sex', 1, '', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675203, 1123598814738675201, 'sex', 2, '', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675204, 0, 'notice', -1, '通知类型', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675205, 1123598814738675204, 'notice', 1, '发布通知', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675206, 1123598814738675204, 'notice', 2, '批转通知', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675207, 1123598814738675204, 'notice', 3, '转发通知', 3, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675208, 1123598814738675204, 'notice', 4, '指示通知', 4, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675209, 1123598814738675204, 'notice', 5, '任免通知', 5, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675210, 1123598814738675204, 'notice', 6, '事务通知', 6, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675211, 0, 'menu_category', -1, '菜单类型', 3, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675212, 1123598814738675211, 'menu_category', 1, '菜单', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675213, 1123598814738675211, 'menu_category', 2, '按钮', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675214, 0, 'button_func', -1, '按钮功能', 4, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675215, 1123598814738675214, 'button_func', 1, '工具栏', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675216, 1123598814738675214, 'button_func', 2, '操作栏', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675217, 1123598814738675214, 'button_func', 3, '工具操作栏', 3, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675218, 0, 'yes_no', -1, '是否', 5, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675219, 1123598814738675218, 'yes_no', 1, '', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675220, 1123598814738675218, 'yes_no', 2, '', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675221, 0, 'flow', -1, '流程类型', 5, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675222, 1123598814738675221, 'flow', 1, '请假流程', 1, 'leave', 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675223, 1123598814738675221, 'flow', 2, '报销流程', 2, 'expense', 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675227, 0, 'org_category', -1, '机构类型', 7, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675228, 1123598814738675227, 'org_category', 1, '公司', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675229, 1123598814738675227, 'org_category', 2, '部门', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675230, 1123598814738675227, 'org_category', 3, '小组', 3, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675231, 0, 'data_scope_type', -1, '数据权限', 8, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675232, 1123598814738675231, 'data_scope_type', 1, '全部可见', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675233, 1123598814738675231, 'data_scope_type', 2, '本人可见', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675234, 1123598814738675231, 'data_scope_type', 3, '所在机构可见', 3, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675235, 1123598814738675231, 'data_scope_type', 4, '所在机构及子级可见', 4, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675236, 1123598814738675231, 'data_scope_type', 5, '自定义', 5, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675237, 0, 'api_scope_type', -1, '接口权限', 10, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675238, 1123598814738675237, 'api_scope_type', 1, '系统接口', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675239, 1123598814738675237, 'api_scope_type', 2, '业务接口', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675240, 0, 'scope_category', -1, '权限类型', 10, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675241, 1123598814738675240, 'scope_category', 1, '数据权限', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675242, 1123598814738675240, 'scope_category', 2, '接口权限', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676224, 0, 'oss', -1, '对象存储类型', 6, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676225, 1123598814738676224, 'oss', 1, 'minio', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676226, 1123598814738676224, 'oss', 2, 'qiniu', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676227, 1123598814738676224, 'oss', 3, 'ali', 3, NULL, 0, 0);
COMMIT;
-- ----------------------------

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

@ -209,6 +209,7 @@ CREATE TABLE "blade_dict" (
"dict_value" varchar(255) COLLATE "pg_catalog"."default",
"sort" int4,
"remark" varchar(255) COLLATE "pg_catalog"."default",
"is_sealed" int4,
"is_deleted" int4
)
;
@ -219,6 +220,7 @@ COMMENT ON COLUMN "blade_dict"."dict_key" IS '字典值';
COMMENT ON COLUMN "blade_dict"."dict_value" IS '字典名称';
COMMENT ON COLUMN "blade_dict"."sort" IS '排序';
COMMENT ON COLUMN "blade_dict"."remark" IS '字典备注';
COMMENT ON COLUMN "blade_dict"."is_seal" IS '是否已封存';
COMMENT ON COLUMN "blade_dict"."is_deleted" IS '是否已删除';
COMMENT ON TABLE "blade_dict" IS '字典表';
@ -226,51 +228,52 @@ COMMENT ON TABLE "blade_dict" IS '字典表';
-- Records of blade_dict
-- ----------------------------
BEGIN;
INSERT INTO "blade_dict" VALUES (1123598814738675201, 0, 'sex', -1, '性别', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675202, 1123598814738675201, 'sex', 1, '', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675203, 1123598814738675201, 'sex', 2, '', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675204, 0, 'notice', -1, '通知类型', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675205, 1123598814738675204, 'notice', 1, '发布通知', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675206, 1123598814738675204, 'notice', 2, '批转通知', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675207, 1123598814738675204, 'notice', 3, '转发通知', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675208, 1123598814738675204, 'notice', 4, '指示通知', 4, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675209, 1123598814738675204, 'notice', 5, '任免通知', 5, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675210, 1123598814738675204, 'notice', 6, '事务通知', 6, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675211, 0, 'menu_category', -1, '菜单类型', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675212, 1123598814738675211, 'menu_category', 1, '菜单', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675213, 1123598814738675211, 'menu_category', 2, '按钮', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675214, 0, 'button_func', -1, '按钮功能', 4, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675215, 1123598814738675214, 'button_func', 1, '工具栏', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675216, 1123598814738675214, 'button_func', 2, '操作栏', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675217, 1123598814738675214, 'button_func', 3, '工具操作栏', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675218, 0, 'yes_no', -1, '是否', 5, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675219, 1123598814738675218, 'yes_no', 1, '', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675220, 1123598814738675218, 'yes_no', 2, '', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675221, 0, 'flow', -1, '流程类型', 5, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675222, 1123598814738675221, 'flow', 1, '请假流程', 1, 'leave', 0);
INSERT INTO "blade_dict" VALUES (1123598814738675223, 1123598814738675221, 'flow', 2, '报销流程', 2, 'expense', 0);
INSERT INTO "blade_dict" VALUES (1123598814738675227, 0, 'org_category', -1, '机构类型', 7, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675228, 1123598814738675227, 'org_category', 1, '公司', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675229, 1123598814738675227, 'org_category', 2, '部门', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675230, 1123598814738675227, 'org_category', 3, '小组', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675231, 0, 'data_scope_type', -1, '数据权限', 8, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675232, 1123598814738675231, 'data_scope_type', 1, '全部可见', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675233, 1123598814738675231, 'data_scope_type', 2, '本人可见', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675234, 1123598814738675231, 'data_scope_type', 3, '所在机构可见', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675235, 1123598814738675231, 'data_scope_type', 4, '所在机构及子级可见', 4, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675236, 1123598814738675231, 'data_scope_type', 5, '自定义', 5, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675237, 0, 'api_scope_type', -1, '接口权限', 10, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675238, 1123598814738675237, 'api_scope_type', 1, '系统接口', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675239, 1123598814738675237, 'api_scope_type', 2, '业务接口', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675240, 0, 'scope_category', -1, '权限类型', 10, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675241, 1123598814738675240, 'scope_category', 1, '数据权限', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675242, 1123598814738675240, 'scope_category', 2, '接口权限', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676224, 0, 'oss', -1, '对象存储类型', 6, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676225, 1123598814738676224, 'oss', 1, 'minio', 1, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676226, 1123598814738676224, 'oss', 2, 'qiniu', 2, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676227, 1123598814738676224, 'oss', 3, 'ali', 3, NULL, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675201, 0, 'sex', -1, '性别', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675202, 1123598814738675201, 'sex', 1, '', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675203, 1123598814738675201, 'sex', 2, '', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675204, 0, 'notice', -1, '通知类型', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675205, 1123598814738675204, 'notice', 1, '发布通知', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675206, 1123598814738675204, 'notice', 2, '批转通知', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675207, 1123598814738675204, 'notice', 3, '转发通知', 3, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675208, 1123598814738675204, 'notice', 4, '指示通知', 4, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675209, 1123598814738675204, 'notice', 5, '任免通知', 5, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675210, 1123598814738675204, 'notice', 6, '事务通知', 6, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675211, 0, 'menu_category', -1, '菜单类型', 3, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675212, 1123598814738675211, 'menu_category', 1, '菜单', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675213, 1123598814738675211, 'menu_category', 2, '按钮', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675214, 0, 'button_func', -1, '按钮功能', 4, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675215, 1123598814738675214, 'button_func', 1, '工具栏', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675216, 1123598814738675214, 'button_func', 2, '操作栏', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675217, 1123598814738675214, 'button_func', 3, '工具操作栏', 3, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675218, 0, 'yes_no', -1, '是否', 5, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675219, 1123598814738675218, 'yes_no', 1, '', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675220, 1123598814738675218, 'yes_no', 2, '', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675221, 0, 'flow', -1, '流程类型', 5, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675222, 1123598814738675221, 'flow', 1, '请假流程', 1, 'leave', 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675223, 1123598814738675221, 'flow', 2, '报销流程', 2, 'expense', 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675227, 0, 'org_category', -1, '机构类型', 7, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675228, 1123598814738675227, 'org_category', 1, '公司', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675229, 1123598814738675227, 'org_category', 2, '部门', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675230, 1123598814738675227, 'org_category', 3, '小组', 3, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675231, 0, 'data_scope_type', -1, '数据权限', 8, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675232, 1123598814738675231, 'data_scope_type', 1, '全部可见', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675233, 1123598814738675231, 'data_scope_type', 2, '本人可见', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675234, 1123598814738675231, 'data_scope_type', 3, '所在机构可见', 3, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675235, 1123598814738675231, 'data_scope_type', 4, '所在机构及子级可见', 4, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675236, 1123598814738675231, 'data_scope_type', 5, '自定义', 5, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675237, 0, 'api_scope_type', -1, '接口权限', 10, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675238, 1123598814738675237, 'api_scope_type', 1, '系统接口', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675239, 1123598814738675237, 'api_scope_type', 2, '业务接口', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675240, 0, 'scope_category', -1, '权限类型', 10, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675241, 1123598814738675240, 'scope_category', 1, '数据权限', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738675242, 1123598814738675240, 'scope_category', 2, '接口权限', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676224, 0, 'oss', -1, '对象存储类型', 6, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676225, 1123598814738676224, 'oss', 1, 'minio', 1, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676226, 1123598814738676224, 'oss', 2, 'qiniu', 2, NULL, 0, 0);
INSERT INTO "blade_dict" VALUES (1123598814738676227, 1123598814738676224, 'oss', 3, 'ali', 3, NULL, 0, 0);
COMMIT;
-- ----------------------------
-- Table structure for blade_log_api
-- ----------------------------

25
doc/sql/update/mysql-update-2.0.7~2.1.0.sql

@ -1,25 +0,0 @@
-- ----------------------------
-- 插入菜单数据
-- ----------------------------
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0);
INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`)
VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0);
-- ----------------------------
-- 插入数据源角色权限数据
-- ----------------------------
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201');
INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`)
VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201');
-- ----------------------------
-- 重新配置oss字典
-- ----------------------------
DELETE FROM `blade_dict` WHERE CODE = 'oss';
INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_deleted`) VALUES (1123598814738676224, 0, 'oss', -1, '对象存储类型', 6, NULL, 0);
INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_deleted`) VALUES (1123598814738676225, 1123598814738676224, 'oss', 1, 'minio', 1, NULL, 0);
INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_deleted`) VALUES (1123598814738676226, 1123598814738676224, 'oss', 2, 'qiniu', 2, NULL, 0);
INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_deleted`) VALUES (1123598814738676227, 1123598814738676224, 'oss', 3, 'ali', 3, NULL, 0);

2
doc/sql/update/mysql-update-2.1.0~2.2.0.sql

@ -0,0 +1,2 @@
ALTER TABLE `blade_dict`
ADD COLUMN `is_sealed` int(2) NULL DEFAULT 0 COMMENT '是否已封存' AFTER `remark`;

25
doc/sql/update/oracle-update-2.0.7~2.1.0.sql

@ -1,25 +0,0 @@
-- ----------------------------
-- 插入菜单数据
-- ----------------------------
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0);
INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED")
VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0);
-- ----------------------------
-- 插入数据源角色权限数据
-- ----------------------------
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201');
INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID)
VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201');
-- ----------------------------
-- 重新配置oss字典
-- ----------------------------
DELETE FROM "BLADEX"."BLADE_DICT" WHERE CODE = 'oss';
INSERT INTO "BLADEX"."BLADE_DICT"(ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_DELETED) VALUES (1123598814738676224, 0, 'oss', -1, '对象存储类型', 6, NULL, 0);
INSERT INTO "BLADEX"."BLADE_DICT"(ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_DELETED) VALUES (1123598814738676225, 1123598814738676224, 'oss', 1, 'minio', 1, NULL, 0);
INSERT INTO "BLADEX"."BLADE_DICT"(ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_DELETED) VALUES (1123598814738676226, 1123598814738676224, 'oss', 2, 'qiniu', 2, NULL, 0);
INSERT INTO "BLADEX"."BLADE_DICT"(ID, PARENT_ID, CODE, DICT_KEY, DICT_VALUE, SORT, REMARK, IS_DELETED) VALUES (1123598814738676227, 1123598814738676224, 'oss', 3, 'ali', 3, NULL, 0);

4
doc/sql/update/oracle-update-2.1.0~2.2.0.sql

@ -0,0 +1,4 @@
ALTER TABLE "BLADEX"."BLADE_DICT"
ADD ("IS_SEALED" NUMBER(11) DEFAULT 0 );
COMMENT ON COLUMN "BLADEX"."BLADE_DICT"."IS_SEAL" IS '是否已封存'

25
doc/sql/update/postgresql-update-2.0.7~2.1.0.sql

@ -1,25 +0,0 @@
-- ----------------------------
-- 插入菜单数据
-- ----------------------------
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0);
INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted")
VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0);
-- ----------------------------
-- 插入数据源角色权限数据
-- ----------------------------
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201');
INSERT INTO "blade_role_menu"("id","menu_id","role_id")
VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201');
-- ----------------------------
-- 重新配置oss字典
-- ----------------------------
DELETE FROM "blade_dict" WHERE CODE = 'oss';
INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_deleted") VALUES (1123598814738676224, 0, 'oss', -1, '对象存储类型', 6, NULL, 0);
INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_deleted") VALUES (1123598814738676225, 1123598814738676224, 'oss', 1, 'minio', 1, NULL, 0);
INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_deleted") VALUES (1123598814738676226, 1123598814738676224, 'oss', 2, 'qiniu', 2, NULL, 0);
INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_deleted") VALUES (1123598814738676227, 1123598814738676224, 'oss', 3, 'ali', 3, NULL, 0);

4
doc/sql/update/postgresql-update-2.1.0~2.2.0.sql

@ -0,0 +1,4 @@
ALTER TABLE "public"."blade_dict"
ADD COLUMN "is_sealed" int4 DEFAULT 0;
COMMENT ON COLUMN "public"."blade_dict"."is_seal" IS '是否已封存';
Loading…
Cancel
Save