From 3c8d864b5f68af5167199e0d5c9ff6c0c5852638 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期一, 20 一月 2025 11:35:45 +0800
Subject: [PATCH] !639 发布 5.3.0-BETA 公测版本 Merge pull request !639 from 疯狂的狮子Li/dev

---
 script/sql/ry_workflow.sql |  405 ++++++++++++++++++++++++++++++++++-----------------------
 1 files changed, 241 insertions(+), 164 deletions(-)

diff --git a/script/sql/ry_workflow.sql b/script/sql/ry_workflow.sql
index e8dc798..9455636 100644
--- a/script/sql/ry_workflow.sql
+++ b/script/sql/ry_workflow.sql
@@ -1,176 +1,253 @@
-insert into sys_menu values('11616', '宸ヤ綔娴�'  , '0',    '6', 'workflow',          '',                                 '', '1', '0', 'M', '0', '0', '',                       'workflow', 103, 1, sysdate(), NULL, NULL, '');
-insert into sys_menu values('11617', '妯″瀷绠$悊', '11616', '2', 'model',             'workflow/model/index',             '', '1', '1', 'C', '0', '0', 'workflow:model:list',    'model', 103, 1, sysdate(), NULL, NULL, '');
-insert into sys_menu values('11618', '鎴戠殑浠诲姟', '0', '7', 'task',              '',                                 '', '1', '0', 'M', '0', '0', '',                       'my-task', 103, 1, sysdate(), NULL, NULL, '');
-insert into sys_menu values('11619', '鎴戠殑寰呭姙', '11618', '2', 'taskWaiting',       'workflow/task/taskWaiting',              '', '1', '1', 'C', '0', '0', '',                       'waiting', 103, 1, sysdate(), NULL, NULL, '');
-insert into sys_menu values('11632', '鎴戠殑宸插姙', '11618', '3', 'taskFinish',       'workflow/task/taskFinish',              '', '1', '1', 'C', '0', '0', '',                       'finish', 103, 1, sysdate(), NULL, NULL, '');
-insert into sys_menu values('11633', '鎴戠殑鎶勯��', '11618', '4', 'taskCopyList',       'workflow/task/taskCopyList',              '', '1', '1', 'C', '0', '0', '',                       'my-copy', 103, 1, sysdate(), NULL, NULL, '');
-insert into sys_menu values('11620', '娴佺▼瀹氫箟', '11616', '3', 'processDefinition', 'workflow/processDefinition/index', '', '1', '1', 'C', '0', '0', '',                       'process-definition', 103, 1, sysdate(), NULL, NULL, '');
-insert into sys_menu values('11621', '娴佺▼瀹炰緥', '11630', '1', 'processInstance',   'workflow/processInstance/index',   '', '1', '1', 'C', '0', '0', '',                       'tree-table', 103, 1, sysdate(), NULL, NULL, '');
-insert into sys_menu values('11622', '娴佺▼鍒嗙被', '11616', '1', 'category',          'workflow/category/index',          '', '1', '0', 'C', '0', '0', 'workflow:category:list', 'category', 103, 1, sysdate(), NULL, NULL, '');
-insert into sys_menu values('11629', '鎴戝彂璧风殑', '11618', '1', 'myDocument',        'workflow/task/myDocument',         '', '1', '1', 'C', '0', '0', '',                       'guide', 103, 1, sysdate(), NULL, NULL, '');
-insert into sys_menu values('11630', '娴佺▼鐩戞帶', '11616', '4', 'monitor',           '',                                 '', '1', '0', 'M', '0', '0', '',                       'monitor', 103, 1, sysdate(), NULL, NULL, '');
-insert into sys_menu values('11631', '寰呭姙浠诲姟', '11630', '2', 'allTaskWaiting',    'workflow/task/allTaskWaiting',     '', '1', '1', 'C', '0', '0', '',                       'waiting', 103, 1, sysdate(), NULL, NULL, '');
+-- ----------------------------
+-- 0銆亀arm-flow-all.sql锛屽湴鍧�锛歨ttps://gitee.com/dromara/warm-flow/blob/master/sql/mysql/warm-flow-all.sql
+-- ----------------------------
+CREATE TABLE `flow_definition`
+(
+    `id`              bigint unsigned NOT NULL COMMENT '涓婚敭id',
+    `flow_code`       varchar(40)     NOT NULL COMMENT '娴佺▼缂栫爜',
+    `flow_name`       varchar(100)    NOT NULL COMMENT '娴佺▼鍚嶇О',
+    `category`        varchar(100)             DEFAULT NULL COMMENT '娴佺▼绫诲埆',
+    `version`         varchar(20)     NOT NULL COMMENT '娴佺▼鐗堟湰',
+    `is_publish`      tinyint(1)      NOT NULL DEFAULT '0' COMMENT '鏄惁鍙戝竷锛�0鏈彂甯� 1宸插彂甯� 9澶辨晥锛�',
+    `form_custom`     char(1)                  DEFAULT 'N' COMMENT '瀹℃壒琛ㄥ崟鏄惁鑷畾涔夛紙Y鏄� N鍚︼級',
+    `form_path`       varchar(100)             DEFAULT NULL COMMENT '瀹℃壒琛ㄥ崟璺緞',
+    `activity_status` tinyint(1)      NOT NULL DEFAULT '1' COMMENT '娴佺▼婵�娲荤姸鎬侊紙0鎸傝捣 1婵�娲伙級',
+    `listener_type`   varchar(100)             DEFAULT NULL COMMENT '鐩戝惉鍣ㄧ被鍨�',
+    `listener_path`   varchar(400)             DEFAULT NULL COMMENT '鐩戝惉鍣ㄨ矾寰�',
+    `ext`             varchar(500)             DEFAULT NULL COMMENT '涓氬姟璇︽儏 瀛樹笟鍔¤〃瀵硅薄json瀛楃涓�',
+    `create_time`     datetime                 DEFAULT NULL COMMENT '鍒涘缓鏃堕棿',
+    `update_time`     datetime                 DEFAULT NULL COMMENT '鏇存柊鏃堕棿',
+    `del_flag`        char(1)                  DEFAULT '0' COMMENT '鍒犻櫎鏍囧織',
+    `tenant_id`       varchar(40)              DEFAULT NULL COMMENT '绉熸埛id',
+    PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB COMMENT ='娴佺▼瀹氫箟琛�';
+
+CREATE TABLE `flow_node`
+(
+    `id`              bigint unsigned NOT NULL COMMENT '涓婚敭id',
+    `node_type`       tinyint(1)      NOT NULL COMMENT '鑺傜偣绫诲瀷锛�0寮�濮嬭妭鐐� 1涓棿鑺傜偣 2缁撴潫鑺傜偣 3浜掓枼缃戝叧 4骞惰缃戝叧锛�',
+    `definition_id`   bigint          NOT NULL COMMENT '娴佺▼瀹氫箟id',
+    `node_code`       varchar(100)    NOT NULL COMMENT '娴佺▼鑺傜偣缂栫爜',
+    `node_name`       varchar(100)  DEFAULT NULL COMMENT '娴佺▼鑺傜偣鍚嶇О',
+    `permission_flag` varchar(200)  DEFAULT NULL COMMENT '鏉冮檺鏍囪瘑锛堟潈闄愮被鍨�:鏉冮檺鏍囪瘑锛屽彲浠ュ涓紝鐢ㄩ�楀彿闅斿紑)',
+    `node_ratio`      decimal(6, 3) DEFAULT NULL COMMENT '娴佺▼绛剧讲姣斾緥鍊�',
+    `coordinate`      varchar(100)  DEFAULT NULL COMMENT '鍧愭爣',
+    `skip_any_node`   varchar(100)  DEFAULT 'N' COMMENT '鏄惁鍙互閫�鍥炰换鎰忚妭鐐癸紙Y鏄� N鍚︼級鍗冲皢鍒犻櫎',
+    `any_node_skip`   varchar(100)  DEFAULT NULL COMMENT '浠绘剰缁撶偣璺宠浆',
+    `listener_type`   varchar(100)  DEFAULT NULL COMMENT '鐩戝惉鍣ㄧ被鍨�',
+    `listener_path`   varchar(400)  DEFAULT NULL COMMENT '鐩戝惉鍣ㄨ矾寰�',
+    `handler_type`    varchar(100)  DEFAULT NULL COMMENT '澶勭悊鍣ㄧ被鍨�',
+    `handler_path`    varchar(400)  DEFAULT NULL COMMENT '澶勭悊鍣ㄨ矾寰�',
+    `form_custom`     char(1)       DEFAULT 'N' COMMENT '瀹℃壒琛ㄥ崟鏄惁鑷畾涔夛紙Y鏄� N鍚︼級',
+    `form_path`       varchar(100)  DEFAULT NULL COMMENT '瀹℃壒琛ㄥ崟璺緞',
+    `version`         varchar(20)     NOT NULL COMMENT '鐗堟湰',
+    `create_time`     datetime      DEFAULT NULL COMMENT '鍒涘缓鏃堕棿',
+    `update_time`     datetime      DEFAULT NULL COMMENT '鏇存柊鏃堕棿',
+    `del_flag`        char(1)       DEFAULT '0' COMMENT '鍒犻櫎鏍囧織',
+    `tenant_id`       varchar(40)   DEFAULT NULL COMMENT '绉熸埛id',
+    PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB COMMENT ='娴佺▼鑺傜偣琛�';
+
+CREATE TABLE `flow_skip`
+(
+    `id`             bigint unsigned NOT NULL COMMENT '涓婚敭id',
+    `definition_id`  bigint          NOT NULL COMMENT '娴佺▼瀹氫箟id',
+    `now_node_code`  varchar(100)    NOT NULL COMMENT '褰撳墠娴佺▼鑺傜偣鐨勭紪鐮�',
+    `now_node_type`  tinyint(1)   DEFAULT NULL COMMENT '褰撳墠鑺傜偣绫诲瀷锛�0寮�濮嬭妭鐐� 1涓棿鑺傜偣 2缁撴潫鑺傜偣 3浜掓枼缃戝叧 4骞惰缃戝叧锛�',
+    `next_node_code` varchar(100)    NOT NULL COMMENT '涓嬩竴涓祦绋嬭妭鐐圭殑缂栫爜',
+    `next_node_type` tinyint(1)   DEFAULT NULL COMMENT '涓嬩竴涓妭鐐圭被鍨嬶紙0寮�濮嬭妭鐐� 1涓棿鑺傜偣 2缁撴潫鑺傜偣 3浜掓枼缃戝叧 4骞惰缃戝叧锛�',
+    `skip_name`      varchar(100) DEFAULT NULL COMMENT '璺宠浆鍚嶇О',
+    `skip_type`      varchar(40)  DEFAULT NULL COMMENT '璺宠浆绫诲瀷锛圥ASS瀹℃壒閫氳繃 REJECT閫�鍥烇級',
+    `skip_condition` varchar(200) DEFAULT NULL COMMENT '璺宠浆鏉′欢',
+    `coordinate`     varchar(100) DEFAULT NULL COMMENT '鍧愭爣',
+    `create_time`    datetime     DEFAULT NULL COMMENT '鍒涘缓鏃堕棿',
+    `update_time`    datetime     DEFAULT NULL COMMENT '鏇存柊鏃堕棿',
+    `del_flag`       char(1)      DEFAULT '0' COMMENT '鍒犻櫎鏍囧織',
+    `tenant_id`      varchar(40)  DEFAULT NULL COMMENT '绉熸埛id',
+    PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB COMMENT ='鑺傜偣璺宠浆鍏宠仈琛�';
+
+CREATE TABLE `flow_instance`
+(
+    `id`              bigint      NOT NULL COMMENT '涓婚敭id',
+    `definition_id`   bigint      NOT NULL COMMENT '瀵瑰簲flow_definition琛ㄧ殑id',
+    `business_id`     varchar(40) NOT NULL COMMENT '涓氬姟id',
+    `node_type`       tinyint(1)  NOT NULL COMMENT '鑺傜偣绫诲瀷锛�0寮�濮嬭妭鐐� 1涓棿鑺傜偣 2缁撴潫鑺傜偣 3浜掓枼缃戝叧 4骞惰缃戝叧锛�',
+    `node_code`       varchar(40) NOT NULL COMMENT '娴佺▼鑺傜偣缂栫爜',
+    `node_name`       varchar(100)         DEFAULT NULL COMMENT '娴佺▼鑺傜偣鍚嶇О',
+    `variable`        text COMMENT '浠诲姟鍙橀噺',
+    `flow_status`     varchar(20) NOT NULL COMMENT '娴佺▼鐘舵�侊紙0寰呮彁浜� 1瀹℃壒涓� 2 瀹℃壒閫氳繃 3鑷姩閫氳繃 4缁堟 5浣滃簾 6鎾ら攢 7鍙栧洖  8宸插畬鎴� 9宸查��鍥� 10澶辨晥锛�',
+    `activity_status` tinyint(1)  NOT NULL DEFAULT '1' COMMENT '娴佺▼婵�娲荤姸鎬侊紙0鎸傝捣 1婵�娲伙級',
+    `def_json`        text COMMENT '娴佺▼瀹氫箟json',
+    `create_by`       varchar(64)          DEFAULT '' COMMENT '鍒涘缓鑰�',
+    `create_time`     datetime             DEFAULT NULL COMMENT '鍒涘缓鏃堕棿',
+    `update_time`     datetime             DEFAULT NULL COMMENT '鏇存柊鏃堕棿',
+    `ext`             varchar(500)         DEFAULT NULL COMMENT '鎵╁睍瀛楁锛岄鐣欑粰涓氬姟绯荤粺浣跨敤',
+    `del_flag`        char(1)              DEFAULT '0' COMMENT '鍒犻櫎鏍囧織',
+    `tenant_id`       varchar(40)          DEFAULT NULL COMMENT '绉熸埛id',
+    PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB COMMENT ='娴佺▼瀹炰緥琛�';
+
+CREATE TABLE `flow_task`
+(
+    `id`            bigint       NOT NULL COMMENT '涓婚敭id',
+    `definition_id` bigint       NOT NULL COMMENT '瀵瑰簲flow_definition琛ㄧ殑id',
+    `instance_id`   bigint       NOT NULL COMMENT '瀵瑰簲flow_instance琛ㄧ殑id',
+    `node_code`     varchar(100) NOT NULL COMMENT '鑺傜偣缂栫爜',
+    `node_name`     varchar(100) DEFAULT NULL COMMENT '鑺傜偣鍚嶇О',
+    `node_type`     tinyint(1)   NOT NULL COMMENT '鑺傜偣绫诲瀷锛�0寮�濮嬭妭鐐� 1涓棿鑺傜偣 2缁撴潫鑺傜偣 3浜掓枼缃戝叧 4骞惰缃戝叧锛�',
+    `form_custom`   char(1)      DEFAULT 'N' COMMENT '瀹℃壒琛ㄥ崟鏄惁鑷畾涔夛紙Y鏄� N鍚︼級',
+    `form_path`     varchar(100) DEFAULT NULL COMMENT '瀹℃壒琛ㄥ崟璺緞',
+    `create_time`   datetime     DEFAULT NULL COMMENT '鍒涘缓鏃堕棿',
+    `update_time`   datetime     DEFAULT NULL COMMENT '鏇存柊鏃堕棿',
+    `del_flag`      char(1)      DEFAULT '0' COMMENT '鍒犻櫎鏍囧織',
+    `tenant_id`     varchar(40)  DEFAULT NULL COMMENT '绉熸埛id',
+    PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB COMMENT ='寰呭姙浠诲姟琛�';
+
+CREATE TABLE `flow_his_task`
+(
+    `id`               bigint(20) unsigned NOT NULL COMMENT '涓婚敭id',
+    `definition_id`    bigint(20)          NOT NULL COMMENT '瀵瑰簲flow_definition琛ㄧ殑id',
+    `instance_id`      bigint(20)          NOT NULL COMMENT '瀵瑰簲flow_instance琛ㄧ殑id',
+    `task_id`          bigint(20)          NOT NULL COMMENT '瀵瑰簲flow_task琛ㄧ殑id',
+    `node_code`        varchar(100)                 DEFAULT NULL COMMENT '寮�濮嬭妭鐐圭紪鐮�',
+    `node_name`        varchar(100)                 DEFAULT NULL COMMENT '寮�濮嬭妭鐐瑰悕绉�',
+    `node_type`        tinyint(1)                   DEFAULT NULL COMMENT '寮�濮嬭妭鐐圭被鍨嬶紙0寮�濮嬭妭鐐� 1涓棿鑺傜偣 2缁撴潫鑺傜偣 3浜掓枼缃戝叧 4骞惰缃戝叧锛�',
+    `target_node_code` varchar(200)                 DEFAULT NULL COMMENT '鐩爣鑺傜偣缂栫爜',
+    `target_node_name` varchar(200)                 DEFAULT NULL COMMENT '缁撴潫鑺傜偣鍚嶇О',
+    `approver`         varchar(40)                  DEFAULT NULL COMMENT '瀹℃壒鑰�',
+    `cooperate_type`   tinyint(1)          NOT NULL DEFAULT '0' COMMENT '鍗忎綔鏂瑰紡(1瀹℃壒 2杞姙 3濮旀淳 4浼氱 5绁ㄧ 6鍔犵 7鍑忕)',
+    `collaborator`     varchar(40)                  DEFAULT NULL COMMENT '鍗忎綔浜�',
+    `skip_type`        varchar(10)         NOT NULL COMMENT '娴佽浆绫诲瀷锛圥ASS閫氳繃 REJECT閫�鍥� NONE鏃犲姩浣滐級',
+    `flow_status`      varchar(20)         NOT NULL COMMENT '娴佺▼鐘舵�侊紙1瀹℃壒涓� 2 瀹℃壒閫氳繃 9宸查��鍥� 10澶辨晥锛�',
+    `form_custom`      char(1)                      DEFAULT 'N' COMMENT '瀹℃壒琛ㄥ崟鏄惁鑷畾涔夛紙Y鏄� N鍚︼級',
+    `form_path`        varchar(100)                 DEFAULT NULL COMMENT '瀹℃壒琛ㄥ崟璺緞',
+    `message`          varchar(500)                 DEFAULT NULL COMMENT '瀹℃壒鎰忚',
+    `variable`         TEXT                         DEFAULT NULL COMMENT '浠诲姟鍙橀噺',
+    `ext`              varchar(500)                 DEFAULT NULL COMMENT '涓氬姟璇︽儏 瀛樹笟鍔¤〃瀵硅薄json瀛楃涓�',
+    `create_time`      datetime                     DEFAULT NULL COMMENT '浠诲姟寮�濮嬫椂闂�',
+    `update_time`      datetime                     DEFAULT NULL COMMENT '瀹℃壒瀹屾垚鏃堕棿',
+    `del_flag`         char(1)                      DEFAULT '0' COMMENT '鍒犻櫎鏍囧織',
+    `tenant_id`        varchar(40)                  DEFAULT NULL COMMENT '绉熸埛id',
+    PRIMARY KEY (`id`) USING BTREE
+) ENGINE = InnoDB COMMENT ='鍘嗗彶浠诲姟璁板綍琛�';
 
 
--- 娴佺▼鍒嗙被绠$悊鐩稿叧鎸夐挳
-insert into sys_menu values ('11623', '娴佺▼鍒嗙被鏌ヨ', '11622', '1', '#', '', '', 1, 0, 'F', '0', '0', 'workflow:category:query', '#', 103, 1, sysdate(), null, null, '');
-insert into sys_menu values ('11624', '娴佺▼鍒嗙被鏂板', '11622', '2', '#', '', '', 1, 0, 'F', '0', '0', 'workflow:category:add',   '#', 103, 1, sysdate(), null, null, '');
-insert into sys_menu values ('11625', '娴佺▼鍒嗙被淇敼', '11622', '3', '#', '', '', 1, 0, 'F', '0', '0', 'workflow:category:edit',  '#', 103, 1, sysdate(), null, null, '');
-insert into sys_menu values ('11626', '娴佺▼鍒嗙被鍒犻櫎', '11622', '4', '#', '', '', 1, 0, 'F', '0', '0', 'workflow:category:remove','#', 103, 1, sysdate(), null, null, '');
-insert into sys_menu values ('11627', '娴佺▼鍒嗙被瀵煎嚭', '11622', '5', '#', '', '', 1, 0, 'F', '0', '0', 'workflow:category:export','#', 103, 1, sysdate(), null, null, '');
+CREATE TABLE `flow_user`
+(
+    `id`           bigint unsigned NOT NULL COMMENT '涓婚敭id',
+    `type`         char(1)         NOT NULL COMMENT '浜哄憳绫诲瀷锛�1寰呭姙浠诲姟鐨勫鎵逛汉鏉冮檺 2寰呭姙浠诲姟鐨勮浆鍔炰汉鏉冮檺 3寰呭姙浠诲姟鐨勫鎵樹汉鏉冮檺锛�',
+    `processed_by` varchar(80) DEFAULT NULL COMMENT '鏉冮檺浜�',
+    `associated`   bigint          NOT NULL COMMENT '浠诲姟琛╥d',
+    `create_time`  datetime    DEFAULT NULL COMMENT '鍒涘缓鏃堕棿',
+    `create_by`    varchar(80) DEFAULT NULL COMMENT '鍒涘缓浜�',
+    `update_time`  datetime    DEFAULT NULL COMMENT '鏇存柊鏃堕棿',
+    `del_flag`     char(1)     DEFAULT '0' COMMENT '鍒犻櫎鏍囧織',
+    `tenant_id`    varchar(40) DEFAULT NULL COMMENT '绉熸埛id',
+    PRIMARY KEY (`id`) USING BTREE,
+    KEY `user_processed_type` (`processed_by`, `type`)
+) ENGINE = InnoDB COMMENT ='娴佺▼鐢ㄦ埛琛�';
+
+-- ----------------------------
+-- 娴佺▼鍒嗙被琛�
+-- ----------------------------
+create table flow_category
+(
+    category_id   bigint(20)  not null comment '娴佺▼鍒嗙被ID',
+    tenant_id     varchar(20)  default '000000' comment '绉熸埛缂栧彿',
+    parent_id     bigint(20)   default 0 comment '鐖舵祦绋嬪垎绫籭d',
+    ancestors     varchar(500) default '' comment '绁栫骇鍒楄〃',
+    category_name varchar(30) not null comment '娴佺▼鍒嗙被鍚嶇О',
+    order_num     int(4)       default 0 comment '鏄剧ず椤哄簭',
+    del_flag      char(1)      default '0' comment '鍒犻櫎鏍囧織锛�0浠h〃瀛樺湪 1浠h〃鍒犻櫎锛�',
+    create_dept   bigint(20)  null comment '鍒涘缓閮ㄩ棬',
+    create_by     bigint(20)  null comment '鍒涘缓鑰�',
+    create_time   datetime    null comment '鍒涘缓鏃堕棿',
+    update_by     bigint(20)  null comment '鏇存柊鑰�',
+    update_time   datetime    null comment '鏇存柊鏃堕棿',
+    primary key (category_id)
+) engine = innodb comment = '娴佺▼鍒嗙被';
+
+INSERT INTO flow_category values (100, '000000', 0, '0', 'OA瀹℃壒', 0, '0', 103, 1, sysdate(), null, null);
+INSERT INTO flow_category values (101, '000000', 100, '0,100', '鍋囧嫟绠$悊', 0, '0', 103, 1, sysdate(), null, null);
+INSERT INTO flow_category values (102, '000000', 100, '0,100', '浜轰簨绠$悊', 1, '0', 103, 1, sysdate(), null, null);
+INSERT INTO flow_category values (103, '000000', 101, '0,100,101', '璇峰亣', 0, '0', 103, 1, sysdate(), null, null);
+INSERT INTO flow_category values (104, '000000', 101, '0,100,101', '鍑哄樊', 1, '0', 103, 1, sysdate(), null, null);
+INSERT INTO flow_category values (105, '000000', 101, '0,100,101', '鍔犵彮', 2, '0', 103, 1, sysdate(), null, null);
+INSERT INTO flow_category values (106, '000000', 101, '0,100,101', '鎹㈢彮', 3, '0', 103, 1, sysdate(), null, null);
+INSERT INTO flow_category values (107, '000000', 101, '0,100,101', '澶栧嚭', 4, '0', 103, 1, sysdate(), null, null);
+INSERT INTO flow_category values (108, '000000', 102, '0,100,102', '杞', 1, '0', 103, 1, sysdate(), null, null);
+INSERT INTO flow_category values (109, '000000', 102, '0,100,102', '绂昏亴', 2, '0', 103, 1, sysdate(), null, null);
+
+-- ----------------------------
 -- 璇峰亣鍗曚俊鎭�
+-- ----------------------------
 create table test_leave
 (
-    id          bigint                       not null comment '涓婚敭',
-    leave_type  varchar(255)                 not null comment '璇峰亣绫诲瀷',
-    start_date   datetime                     not null comment '寮�濮嬫椂闂�',
-    end_date     datetime                     not null comment '缁撴潫鏃堕棿',
-    leave_days  int(10)                      not null comment '璇峰亣澶╂暟',
-    remark      varchar(255)                 null comment '璇峰亣鍘熷洜',
-    status      varchar(255)                 null comment '鐘舵��',
-    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 '绉熸埛缂栧彿',
-    PRIMARY KEY (id) USING BTREE
-) ENGINE = InnoDB COMMENT = '璇峰亣鐢宠琛�';
-
--- 娴佺▼鍒嗙被淇℃伅琛�
-create table wf_category
-(
-    id            bigint                       not null comment '涓婚敭'
-        primary key,
-    category_name varchar(255)                 null comment '鍒嗙被鍚嶇О',
-    category_code varchar(255)                 null comment '鍒嗙被缂栫爜',
-    parent_id     bigint                       null comment '鐖剁骇id',
-    sort_num      int(19)                      null comment '鎺掑簭',
-    tenant_id     varchar(20)                  null comment '绉熸埛缂栧彿',
-    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 '鏇存柊鏃堕棿',
-    constraint uni_category_code
-        unique (category_code)
-) engine=innodb comment= '娴佺▼鍒嗙被';
-INSERT INTO wf_category values (1, 'OA', 'OA', 0, 0, '000000', 103, 1, sysdate(), 1, sysdate());
-
-create table wf_task_back_node
-(
-    id          bigint                       not null
-        primary key,
-    node_id     varchar(255)                 not null comment '鑺傜偣id',
-    node_name   varchar(255)                 not null comment '鑺傜偣鍚嶇О',
-    order_no    int                          not null comment '鎺掑簭',
-    instance_id varchar(255)                 null comment '娴佺▼瀹炰緥id',
-    task_type   varchar(255)                 not null comment '鑺傜偣绫诲瀷',
-    assignee    varchar(2000)                not null comment '瀹℃壒浜�',
-    tenant_id   varchar(20)                  null comment '绉熸埛缂栧彿',
-    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 '鏇存柊鏃堕棿'
-)
-    comment '鑺傜偣瀹℃壒璁板綍';
-
-create table wf_definition_config
-(
-    id            bigint                        not null comment '涓婚敭'
-        primary key,
-    table_name    varchar(255)                  not null comment '琛ㄥ悕',
-    definition_id varchar(255)                  not null comment '娴佺▼瀹氫箟ID',
-    process_key   varchar(255)                  not null comment '娴佺▼KEY',
-    version       int(10)                       not null comment '娴佺▼鐗堟湰',
-    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 '鏇存柊鏃堕棿',
-    remark        varchar(500) default ''       null comment '澶囨敞',
-    tenant_id     varchar(20)                   null comment '绉熸埛缂栧彿',
-    constraint uni_definition_id
-        unique (definition_id)
-)
-    comment '娴佺▼瀹氫箟閰嶇疆';
-
-create table wf_form_manage
-(
-    id          bigint       not null comment '涓婚敭'
-        primary key,
-    form_name   varchar(255) not null comment '琛ㄥ崟鍚嶇О',
-    form_type   varchar(255) not null comment '琛ㄥ崟绫诲瀷',
-    router      varchar(255) not null comment '璺敱鍦板潃/琛ㄥ崟ID',
-    remark      varchar(500) null comment '澶囨敞',
-    tenant_id   varchar(20)  null comment '绉熸埛缂栧彿',
+    id          bigint(20)   not null comment 'id',
+    tenant_id   varchar(20) default '000000' comment '绉熸埛缂栧彿',
+    leave_type  varchar(255) not null comment '璇峰亣绫诲瀷',
+    start_date  datetime     not null comment '寮�濮嬫椂闂�',
+    end_date    datetime     not null comment '缁撴潫鏃堕棿',
+    leave_days  int(10)      not null comment '璇峰亣澶╂暟',
+    remark      varchar(255) null comment '璇峰亣鍘熷洜',
+    status      varchar(255) null comment '鐘舵��',
     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 '鏇存柊鏃堕棿'
-)
-    comment '琛ㄥ崟绠$悊';
+    update_time datetime     null comment '鏇存柊鏃堕棿',
+    PRIMARY KEY (id) USING BTREE
+) ENGINE = InnoDB COMMENT = '璇峰亣鐢宠琛�';
 
-insert into wf_form_manage(id, form_name, form_type, router, remark, tenant_id, create_dept, create_by, create_time, update_by, update_time) VALUES (1, '璇峰亣鐢宠', 'static', '/workflow/leaveEdit/index', NULL, '000000', 103, 1, sysdate(), 1, sysdate());
+insert into sys_menu values ('11616', '宸ヤ綔娴�', '0', '6', 'workflow', '', '', '1', '0', 'M', '0', '0', '', 'workflow', 103, 1, sysdate(),NULL, NULL, '');
+insert into sys_menu values ('11618', '鎴戠殑浠诲姟', '0', '7', 'task', '', '', '1', '0', 'M', '0', '0', '', 'my-task', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu values ('11619', '鎴戠殑寰呭姙', '11618', '2', 'taskWaiting', 'workflow/task/taskWaiting', '', '1', '1', 'C', '0', '0', '', 'waiting', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu values ('11632', '鎴戠殑宸插姙', '11618', '3', 'taskFinish', 'workflow/task/taskFinish', '', '1', '1', 'C', '0', '0', '', 'finish', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu values ('11633', '鎴戠殑鎶勯��', '11618', '4', 'taskCopyList', 'workflow/task/taskCopyList', '', '1', '1', 'C', '0', '0', '', 'my-copy', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu values ('11620', '娴佺▼瀹氫箟', '11616', '3', 'processDefinition', 'workflow/processDefinition/index', '', '1', '1', 'C', '0', '0', '', 'process-definition', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu values ('11621', '娴佺▼瀹炰緥', '11630', '1', 'processInstance', 'workflow/processInstance/index', '', '1', '1', 'C', '0', '0', '', 'tree-table', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu values ('11622', '娴佺▼鍒嗙被', '11616', '1', 'category', 'workflow/category/index', '', '1', '0', 'C', '0', '0', 'workflow:category:list', 'category', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu values ('11629', '鎴戝彂璧风殑', '11618', '1', 'myDocument', 'workflow/task/myDocument', '', '1', '1', 'C', '0', '0', '', 'guide', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu values ('11630', '娴佺▼鐩戞帶', '11616', '4', 'monitor', '', '', '1', '0', 'M', '0', '0', '', 'monitor', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu values ('11631', '寰呭姙浠诲姟', '11630', '2', 'allTaskWaiting', 'workflow/task/allTaskWaiting', '', '1', '1', 'C', '0', '0', '', 'waiting', 103, 1, sysdate(), NULL, NULL, '');
+-- 娴佺▼鍒嗙被绠$悊鐩稿叧鎸夐挳
+insert into sys_menu values ('11623', '娴佺▼鍒嗙被鏌ヨ', '11622', '1', '#', '', '', 1, 0, 'F', '0', '0', 'workflow:category:query', '#', 103, 1,sysdate(), null, null, '');
+insert into sys_menu values ('11624', '娴佺▼鍒嗙被鏂板', '11622', '2', '#', '', '', 1, 0, 'F', '0', '0', 'workflow:category:add', '#', 103, 1,sysdate(), null, null, '');
+insert into sys_menu values ('11625', '娴佺▼鍒嗙被淇敼', '11622', '3', '#', '', '', 1, 0, 'F', '0', '0', 'workflow:category:edit', '#', 103, 1,sysdate(), null, null, '');
+insert into sys_menu values ('11626', '娴佺▼鍒嗙被鍒犻櫎', '11622', '4', '#', '', '', 1, 0, 'F', '0', '0', 'workflow:category:remove', '#', 103,1, sysdate(), null, null, '');
+insert into sys_menu values ('11627', '娴佺▼鍒嗙被瀵煎嚭', '11622', '5', '#', '', '', 1, 0, 'F', '0', '0', 'workflow:category:export', '#', 103,1, sysdate(), null, null, '');
+-- 璇峰亣娴嬭瘯鐩稿叧鎸夐挳
+insert into sys_menu VALUES (11638, '璇峰亣鐢宠',     5,    1, 'leave', 'workflow/leave/index', '', 1, 0, 'C', '0', '0', 'workflow:leave:list', '#', 103, 1, sysdate(), NULL, NULL, '璇峰亣鐢宠鑿滃崟');
+insert into sys_menu VALUES (11639, '璇峰亣鐢宠鏌ヨ', 11638, 1, '#', '', '', 1, 0, 'F', '0', '0', 'workflow:leave:query', '#', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu VALUES (11640, '璇峰亣鐢宠鏂板', 11638, 2, '#', '', '', 1, 0, 'F', '0', '0', 'workflow:leave:add', '#', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu VALUES (11641, '璇峰亣鐢宠淇敼', 11638, 3, '#', '', '', 1, 0, 'F', '0', '0', 'workflow:leave:edit', '#', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu VALUES (11642, '璇峰亣鐢宠鍒犻櫎', 11638, 4, '#', '', '', 1, 0, 'F', '0', '0', 'workflow:leave:remove', '#', 103, 1, sysdate(), NULL, NULL, '');
+insert into sys_menu VALUES (11643, '璇峰亣鐢宠瀵煎嚭', 11638, 5, '#', '', '', 1, 0, 'F', '0', '0', 'workflow:leave:export', '#', 103, 1, sysdate(), NULL, NULL, '');
 
-create table wf_node_config
-(
-    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',
-    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 '鑺傜偣閰嶇疆';
+INSERT INTO sys_dict_type VALUES (13, '000000', '涓氬姟鐘舵��', 'wf_business_status', 103, 1, sysdate(), NULL, NULL, '涓氬姟鐘舵�佸垪琛�');
+INSERT INTO sys_dict_type VALUES (14, '000000', '琛ㄥ崟绫诲瀷', 'wf_form_type', 103, 1, sysdate(), NULL, NULL, '琛ㄥ崟绫诲瀷鍒楄〃');
+INSERT INTO sys_dict_type VALUES (15, '000000', '浠诲姟鐘舵��', 'wf_task_status', 103, 1, sysdate(), NULL, NULL, '浠诲姟鐘舵��');
+INSERT INTO sys_dict_data VALUES (39, '000000', 1, '宸叉挙閿�', 'cancel', 'wf_business_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL,'宸叉挙閿�');
+INSERT INTO sys_dict_data VALUES (40, '000000', 2, '鑽夌', 'draft', 'wf_business_status', '', 'info', 'N', 103, 1, sysdate(), NULL, NULL, '鑽夌');
+INSERT INTO sys_dict_data VALUES (41, '000000', 3, '寰呭鏍�', 'waiting', 'wf_business_status', '', 'primary', 'N', 103, 1, sysdate(), NULL, NULL,'寰呭鏍�');
+INSERT INTO sys_dict_data VALUES (42, '000000', 4, '宸插畬鎴�', 'finish', 'wf_business_status', '', 'success', 'N', 103, 1, sysdate(), NULL, NULL,'宸插畬鎴�');
+INSERT INTO sys_dict_data VALUES (43, '000000', 5, '宸蹭綔搴�', 'invalid', 'wf_business_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL,'宸蹭綔搴�');
+INSERT INTO sys_dict_data VALUES (44, '000000', 6, '宸查��鍥�', 'back', 'wf_business_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL,'宸查��鍥�');
+INSERT INTO sys_dict_data VALUES (45, '000000', 7, '宸茬粓姝�', 'termination', 'wf_business_status', '', 'danger', 'N', 103, 1, sysdate(), NULL,NULL, '宸茬粓姝�');
+INSERT INTO sys_dict_data VALUES (46, '000000', 1, '鑷畾涔夎〃鍗�', 'static', 'wf_form_type', '', 'success', 'N', 103, 1, sysdate(), NULL, NULL,'鑷畾涔夎〃鍗�');
+INSERT INTO sys_dict_data VALUES (47, '000000', 2, '鍔ㄦ�佽〃鍗�', 'dynamic', 'wf_form_type', '', 'primary', 'N', 103, 1, sysdate(), NULL, NULL,'鍔ㄦ�佽〃鍗�');
+INSERT INTO sys_dict_data VALUES (48, '000000', 1, '鎾ら攢', 'cancel', 'wf_task_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL, '鎾ら攢');
+INSERT INTO sys_dict_data VALUES (49, '000000', 2, '閫氳繃', 'pass', 'wf_task_status', '', 'success', 'N', 103, 1, sysdate(), NULL, NULL, '閫氳繃');
+INSERT INTO sys_dict_data VALUES (50, '000000', 3, '寰呭鏍�', 'waiting', 'wf_task_status', '', 'primary', 'N', 103, 1, sysdate(), NULL, NULL, '寰呭鏍�');
+INSERT INTO sys_dict_data VALUES (51, '000000', 4, '浣滃簾', 'invalid', 'wf_task_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL, '浣滃簾');
+INSERT INTO sys_dict_data VALUES (52, '000000', 5, '閫�鍥�', 'back', 'wf_task_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL, '閫�鍥�');
+INSERT INTO sys_dict_data VALUES (53, '000000', 6, '缁堟', 'termination', 'wf_task_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL, '缁堟');
+INSERT INTO sys_dict_data VALUES (54, '000000', 7, '杞姙', 'transfer', 'wf_task_status', '', 'primary', 'N', 103, 1, sysdate(), NULL, NULL, '杞姙');
+INSERT INTO sys_dict_data VALUES (55, '000000', 8, '濮旀墭', 'depute', 'wf_task_status', '', 'primary', 'N', 103, 1, sysdate(), NULL, NULL, '濮旀墭');
+INSERT INTO sys_dict_data VALUES (56, '000000', 9, '鎶勯��', 'copy', 'wf_task_status', '', 'primary', 'N', 103, 1, sysdate(), NULL, NULL, '鎶勯��');
+INSERT INTO sys_dict_data VALUES (57, '000000', 10, '鍔犵', 'sign', 'wf_task_status', '', 'primary', 'N', 103, 1, sysdate(), NULL, NULL, '鍔犵');
+INSERT INTO sys_dict_data VALUES (58, '000000', 11, '鍑忕', 'sign_off', 'wf_task_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL, '鍑忕');
+INSERT INTO sys_dict_data VALUES (59, '000000', 11, '瓒呮椂', 'timeout', 'wf_task_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL, '瓒呮椂');
 
-
-INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11638, '璇峰亣鐢宠', 5, 1, 'leave', 'workflow/leave/index', 1, 0, 'C', '0', '0', 'workflow:leave:list', '#', 103, 1, sysdate(), NULL, NULL, '璇峰亣鐢宠鑿滃崟');
-INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11639, '璇峰亣鐢宠鏌ヨ', 11638, 1, '#', '', 1, 0, 'F', '0', '0', 'workflow:leave:query', '#', 103, 1, sysdate(), NULL, NULL, '');
-INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11640, '璇峰亣鐢宠鏂板', 11638, 2, '#', '', 1, 0, 'F', '0', '0', 'workflow:leave:add', '#', 103, 1, sysdate(), NULL, NULL, '');
-INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11641, '璇峰亣鐢宠淇敼', 11638, 3, '#', '', 1, 0, 'F', '0', '0', 'workflow:leave:edit', '#', 103, 1, sysdate(), NULL, NULL, '');
-INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11642, '璇峰亣鐢宠鍒犻櫎', 11638, 4, '#', '', 1, 0, 'F', '0', '0', 'workflow:leave:remove', '#', 103, 1, sysdate(), NULL, NULL, '');
-INSERT INTO sys_menu(menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (11643, '璇峰亣鐢宠瀵煎嚭', 11638, 5, '#', '', 1, 0, 'F', '0', '0', 'workflow:leave:export', '#', 103, 1, sysdate(), NULL, NULL, '');
-
-INSERT INTO sys_dict_type(dict_id, tenant_id, dict_name, dict_type, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (13, '000000', '涓氬姟鐘舵��', 'wf_business_status', 103, 1, sysdate(), NULL, NULL, '涓氬姟鐘舵�佸垪琛�');
-INSERT INTO sys_dict_type(dict_id, tenant_id, dict_name, dict_type, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (14, '000000', '琛ㄥ崟绫诲瀷', 'wf_form_type', 103, 1, sysdate(), NULL, NULL, '琛ㄥ崟绫诲瀷鍒楄〃');
-
-INSERT INTO sys_dict_data(dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (39, '000000', 1, '宸叉挙閿�', 'cancel', 'wf_business_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL, '宸叉挙閿�');
-INSERT INTO sys_dict_data(dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (40, '000000', 2, '鑽夌', 'draft', 'wf_business_status', '', 'info', 'N', 103, 1, sysdate(), NULL, NULL, '鑽夌');
-INSERT INTO sys_dict_data(dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (41, '000000', 3, '寰呭鏍�', 'waiting', 'wf_business_status', '', 'primary', 'N', 103, 1,sysdate(), NULL, NULL, '寰呭鏍�');
-INSERT INTO sys_dict_data(dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (42, '000000', 4, '宸插畬鎴�', 'finish', 'wf_business_status', '', 'success', 'N', 103, 1, sysdate(), NULL, NULL, '宸插畬鎴�');
-INSERT INTO sys_dict_data(dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (43, '000000', 5, '宸蹭綔搴�', 'invalid', 'wf_business_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL, '宸蹭綔搴�');
-INSERT INTO sys_dict_data(dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (44, '000000', 6, '宸查��鍥�', 'back', 'wf_business_status', '', 'danger', 'N', 103, 1, sysdate(), NULL, NULL, '宸查��鍥�');
-INSERT INTO sys_dict_data(dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (45, '000000', 7, '宸茬粓姝�', 'termination', 'wf_business_status', '', 'danger', 'N', 103, 1,sysdate(), NULL, NULL, '宸茬粓姝�');
-INSERT INTO sys_dict_data(dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (46, '000000', 1, '鑷畾涔夎〃鍗�', 'static', 'wf_form_type', '', 'success', 'N', 103, 1, sysdate(), NULL, NULL, '鑷畾涔夎〃鍗�');
-INSERT INTO sys_dict_data(dict_code, tenant_id, dict_sort, dict_label, dict_value, dict_type, css_class, list_class, is_default, create_dept, create_by, create_time, update_by, update_time, remark) VALUES (47, '000000', 2, '鍔ㄦ�佽〃鍗�', 'dynamic', 'wf_form_type', '', 'primary', 'N', 103, 1, sysdate(), NULL, NULL, '鍔ㄦ�佽〃鍗�');
-
--- 琛ㄥ崟绠$悊 SQL
-insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark)
-values(11628, '琛ㄥ崟绠$悊', '11616', '5', 'formManage', 'workflow/formManage/index', 1, 0, 'C', '0', '0', 'workflow:formManage:list', 'tree-table', 103, 1, sysdate(), null, null, '琛ㄥ崟绠$悊鑿滃崟');
-
--- 琛ㄥ崟绠$悊鎸夐挳 SQL
-insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark)
-values(11644, '琛ㄥ崟绠$悊鏌ヨ', 11628, '1',  '#', '', 1, 0, 'F', '0', '0', 'workflow:formManage:query',        '', 103, 1, sysdate(), null, null, '');
-
-insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark)
-values(11645, '琛ㄥ崟绠$悊鏂板', 11628, '2',  '#', '', 1, 0, 'F', '0', '0', 'workflow:formManage:add',          '', 103, 1, sysdate(), null, null, '');
-
-insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark)
-values(11646, '琛ㄥ崟绠$悊淇敼', 11628, '3',  '#', '', 1, 0, 'F', '0', '0', 'workflow:formManage:edit',         '', 103, 1, sysdate(), null, null, '');
-
-insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark)
-values(11647, '琛ㄥ崟绠$悊鍒犻櫎', 11628, '4',  '#', '', 1, 0, 'F', '0', '0', 'workflow:formManage:remove',       '', 103, 1, sysdate(), null, null, '');
-
-insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, visible, status, perms, icon, create_dept, create_by, create_time, update_by, update_time, remark)
-values(11648, '琛ㄥ崟绠$悊瀵煎嚭', 11628, '5',  '#', '', 1, 0, 'F', '0', '0', 'workflow:formManage:export',       'tree-table', 103, 1, sysdate(), null, null, '');

--
Gitblit v1.9.3