mirror of
				https://github.com/dromara/RuoYi-Vue-Plus.git
				synced 2025-11-04 08:13:44 +08:00 
			
		
		
		
	update 补充节点配置sql
This commit is contained in:
		@@ -115,19 +115,20 @@ insert into wf_form_manage(id, form_name, form_type, router, remark, tenant_id,
 | 
			
		||||
 | 
			
		||||
create table wf_node_config
 | 
			
		||||
(
 | 
			
		||||
    id            bigint       not null comment '主键'
 | 
			
		||||
    id               bigint       not null comment '主键'
 | 
			
		||||
        primary key,
 | 
			
		||||
    form_id       bigint       null comment '表单id',
 | 
			
		||||
    form_type     varchar(255) null comment '表单类型',
 | 
			
		||||
    node_name     varchar(255) not null comment '节点名称',
 | 
			
		||||
    node_id       varchar(255) not null comment '节点id',
 | 
			
		||||
    definition_id varchar(255) not null comment '流程定义id',
 | 
			
		||||
    create_dept   bigint       null comment '创建部门',
 | 
			
		||||
    create_by     bigint       null comment '创建者',
 | 
			
		||||
    create_time   datetime     null comment '创建时间',
 | 
			
		||||
    update_by     bigint       null comment '更新者',
 | 
			
		||||
    update_time   datetime     null comment '更新时间',
 | 
			
		||||
    tenant_id     varchar(20)  null comment '租户编号'
 | 
			
		||||
    form_id          bigint       null comment '表单id',
 | 
			
		||||
    form_type        varchar(255) null comment '表单类型',
 | 
			
		||||
    node_name        varchar(255) not null comment '节点名称',
 | 
			
		||||
    node_id          varchar(255) not null comment '节点id',
 | 
			
		||||
    definition_id    varchar(255) not null comment '流程定义id',
 | 
			
		||||
    apply_user_task  char(1)      default '0'     comment '是否为申请人节点 (0是 1否)',
 | 
			
		||||
    create_dept      bigint       null comment '创建部门',
 | 
			
		||||
    create_by        bigint       null comment '创建者',
 | 
			
		||||
    create_time      datetime     null comment '创建时间',
 | 
			
		||||
    update_by        bigint       null comment '更新者',
 | 
			
		||||
    update_time      datetime     null comment '更新时间',
 | 
			
		||||
    tenant_id        varchar(20)  null comment '租户编号'
 | 
			
		||||
)
 | 
			
		||||
    comment '节点配置';
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -183,20 +183,21 @@ insert into wf_form_manage(id, form_name, form_type, router, remark, tenant_id,
 | 
			
		||||
 | 
			
		||||
create table WF_NODE_CONFIG
 | 
			
		||||
(
 | 
			
		||||
    ID            NUMBER(20) NOT NULL
 | 
			
		||||
    ID               NUMBER(20) NOT NULL
 | 
			
		||||
        CONSTRAINT PK_WF_NODE_CONFIG
 | 
			
		||||
        PRIMARY KEY,
 | 
			
		||||
    FORM_ID       NUMBER(20),
 | 
			
		||||
    FORM_TYPE     VARCHAR2(255),
 | 
			
		||||
    NODE_NAME     VARCHAR2(255) NOT NULL,
 | 
			
		||||
    NODE_ID       VARCHAR2(255) NOT NULL,
 | 
			
		||||
    DEFINITION_ID VARCHAR2(255) NOT NULL,
 | 
			
		||||
    TENANT_ID     VARCHAR2(20),
 | 
			
		||||
    CREATE_DEPT   NUMBER(20),
 | 
			
		||||
    CREATE_BY     NUMBER(20),
 | 
			
		||||
    CREATE_TIME   DATE,
 | 
			
		||||
    UPDATE_BY     NUMBER(20),
 | 
			
		||||
    UPDATE_TIME   DATE
 | 
			
		||||
    FORM_ID          NUMBER(20),
 | 
			
		||||
    FORM_TYPE        VARCHAR2(255),
 | 
			
		||||
    NODE_NAME        VARCHAR2(255) NOT NULL,
 | 
			
		||||
    NODE_ID          VARCHAR2(255) NOT NULL,
 | 
			
		||||
    DEFINITION_ID    VARCHAR2(255) NOT NULL,
 | 
			
		||||
    APPLY_USER_TASK  CHAR(1) DEFAULT '0',
 | 
			
		||||
    TENANT_ID        VARCHAR2(20),
 | 
			
		||||
    CREATE_DEPT      NUMBER(20),
 | 
			
		||||
    CREATE_BY        NUMBER(20),
 | 
			
		||||
    CREATE_TIME      DATE,
 | 
			
		||||
    UPDATE_BY        NUMBER(20),
 | 
			
		||||
    UPDATE_TIME      DATE
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
comment on table WF_NODE_CONFIG is '节点配置'
 | 
			
		||||
@@ -206,6 +207,7 @@ comment on column WF_NODE_CONFIG.FORM_TYPE is '表单类型'
 | 
			
		||||
comment on column WF_NODE_CONFIG.NODE_ID is '节点id'
 | 
			
		||||
comment on column WF_NODE_CONFIG.NODE_NAME is '节点名称'
 | 
			
		||||
comment on column WF_NODE_CONFIG.DEFINITION_ID is '流程定义id'
 | 
			
		||||
comment on column WF_NODE_CONFIG.APPLY_USER_TASK is '是否为申请人节点 (0是 1否)'
 | 
			
		||||
comment on column WF_NODE_CONFIG.TENANT_ID is '租户编号'
 | 
			
		||||
comment on column WF_NODE_CONFIG.CREATE_DEPT is '创建部门'
 | 
			
		||||
comment on column WF_NODE_CONFIG.CREATE_BY is '创建者'
 | 
			
		||||
 
 | 
			
		||||
@@ -252,20 +252,21 @@ insert into wf_form_manage(id, form_name, form_type, router, remark, tenant_id,
 | 
			
		||||
 | 
			
		||||
create table wf_node_config
 | 
			
		||||
(
 | 
			
		||||
    id            bigint not null
 | 
			
		||||
    id               bigint not null
 | 
			
		||||
        constraint pk_wf_node_config
 | 
			
		||||
            primary key,
 | 
			
		||||
    form_id       bigint,
 | 
			
		||||
    form_type     varchar(255),
 | 
			
		||||
    node_name     varchar(255) not null,
 | 
			
		||||
    node_id       varchar(255) not null,
 | 
			
		||||
    definition_id varchar(255) not null,
 | 
			
		||||
    tenant_id     varchar(20),
 | 
			
		||||
    create_dept   bigint,
 | 
			
		||||
    create_by     bigint,
 | 
			
		||||
    create_time   timestamp,
 | 
			
		||||
    update_by     bigint,
 | 
			
		||||
    update_time   timestamp
 | 
			
		||||
    form_id          bigint,
 | 
			
		||||
    form_type        varchar(255),
 | 
			
		||||
    node_name        varchar(255) not null,
 | 
			
		||||
    node_id          varchar(255) not null,
 | 
			
		||||
    definition_id    varchar(255) not null,
 | 
			
		||||
    apply_user_task  char(1) default '0',
 | 
			
		||||
    tenant_id        varchar(20),
 | 
			
		||||
    create_dept      bigint,
 | 
			
		||||
    create_by        bigint,
 | 
			
		||||
    create_time      timestamp,
 | 
			
		||||
    update_by        bigint,
 | 
			
		||||
    update_time      timestamp
 | 
			
		||||
);
 | 
			
		||||
 | 
			
		||||
comment on table wf_node_config is '节点配置';
 | 
			
		||||
@@ -282,6 +283,8 @@ comment on column wf_node_config.node_name is '节点名称';
 | 
			
		||||
 | 
			
		||||
comment on column wf_node_config.definition_id is '流程定义id';
 | 
			
		||||
 | 
			
		||||
comment on column wf_node_config.apply_user_task is '是否为申请人节点 (0是 1否)';
 | 
			
		||||
 | 
			
		||||
comment on column wf_node_config.tenant_id is '租户id';
 | 
			
		||||
 | 
			
		||||
comment on column wf_node_config.create_dept is '创建部门';
 | 
			
		||||
 
 | 
			
		||||
@@ -333,18 +333,19 @@ insert into wf_form_manage(id, form_name, form_type, router, remark, tenant_id,
 | 
			
		||||
 | 
			
		||||
create table wf_node_config
 | 
			
		||||
(
 | 
			
		||||
    id            bigint not null primary key,
 | 
			
		||||
    form_id       bigint,
 | 
			
		||||
    form_type     nvarchar(255) ,
 | 
			
		||||
    node_name     nvarchar(255) not null,
 | 
			
		||||
    node_id       nvarchar(255) not null,
 | 
			
		||||
    definition_id nvarchar(255) not null,
 | 
			
		||||
    tenant_id     nvarchar(20),
 | 
			
		||||
    create_dept   bigint,
 | 
			
		||||
    create_by     bigint,
 | 
			
		||||
    create_time   datetime2,
 | 
			
		||||
    update_by     bigint,
 | 
			
		||||
    update_time   datetime2
 | 
			
		||||
    id               bigint not null primary key,
 | 
			
		||||
    form_id          bigint,
 | 
			
		||||
    form_type        nvarchar(255) ,
 | 
			
		||||
    node_name        nvarchar(255) not null,
 | 
			
		||||
    node_id          nvarchar(255) not null,
 | 
			
		||||
    definition_id    nvarchar(255) not null,
 | 
			
		||||
    apply_user_task  nchar default ('0')  null,
 | 
			
		||||
    tenant_id        nvarchar(20),
 | 
			
		||||
    create_dept      bigint,
 | 
			
		||||
    create_by        bigint,
 | 
			
		||||
    create_time      datetime2,
 | 
			
		||||
    update_by        bigint,
 | 
			
		||||
    update_time      datetime2
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
go
 | 
			
		||||
@@ -374,6 +375,10 @@ exec sp_addextendedproperty 'MS_Description', N'流程定义id', 'SCHEMA', 'dbo'
 | 
			
		||||
     'definition_id'
 | 
			
		||||
go
 | 
			
		||||
 | 
			
		||||
exec sp_addextendedproperty 'MS_Description', N'是否为申请人节点 (0是 1否)', 'SCHEMA', 'dbo', 'TABLE', 'wf_node_config', 'COLUMN',
 | 
			
		||||
     'apply_user_task'
 | 
			
		||||
go
 | 
			
		||||
 | 
			
		||||
exec sp_addextendedproperty 'MS_Description', N'租户编号', 'SCHEMA', 'dbo', 'TABLE', 'wf_node_config', 'COLUMN',
 | 
			
		||||
     'tenant_id'
 | 
			
		||||
go
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user