!229 新增工作流扩展spel表达式

* add: 新增 FlowSpel 相关 sql 脚本 ;
This commit is contained in:
MichelleChung
2025-07-06 07:52:47 +00:00
committed by 疯狂的狮子Li
parent 77a245c13b
commit a4d21e06c0
25 changed files with 862 additions and 7 deletions

View File

@@ -182,6 +182,30 @@ INSERT INTO flow_category values (107, '000000', 101, '0,100,101', '外出', 4,
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);
-- ----------------------------
-- 流程spel表达式定义表
-- ----------------------------
CREATE TABLE flow_spel (
id bigint(20) NOT NULL COMMENT '主键id',
component_name varchar(255) DEFAULT NULL COMMENT '组件名称',
method_name varchar(255) DEFAULT NULL COMMENT '方法名',
method_params varchar(255) DEFAULT NULL COMMENT '参数',
view_spel varchar(255) DEFAULT NULL COMMENT '预览spel表达式',
remark varchar(255) DEFAULT NULL COMMENT '备注',
status char(1) DEFAULT '0' COMMENT '状态0正常 1停用',
del_flag char(1) DEFAULT '0' COMMENT '删除标志',
create_dept bigint(20) DEFAULT NULL COMMENT '创建部门',
create_by bigint(20) DEFAULT NULL COMMENT '创建者',
create_time datetime DEFAULT NULL COMMENT '创建时间',
update_by bigint(20) DEFAULT NULL COMMENT '更新者',
update_time datetime DEFAULT NULL COMMENT '更新时间',
PRIMARY KEY (id)
) ENGINE = InnoDB COMMENT='流程spel表达式定义表';
INSERT INTO flow_spel VALUES (1, 'spelRuleComponent', 'selectDeptLeaderById', 'initiatorDeptId', '#{@spelRuleComponent.selectDeptLeaderById(#initiatorDeptId)}', '根据部门id获取部门负责人', '0', '0', 103, 1, sysdate(), 1, sysdate());
INSERT INTO flow_spel VALUES (2, NULL, NULL, 'initiator', '${initiator}', '流程发起人', '0', '0', 103, 1, sysdate(), 1, sysdate());
-- ----------------------------
-- 请假单信息
-- ----------------------------