update: 更新变量名称以及初始化数据 ;

This commit is contained in:
Michelle.Chung 2025-07-05 19:24:21 +08:00
parent f4c6294e3a
commit fa1a60f8a2
3 changed files with 5 additions and 5 deletions

View File

@ -21,7 +21,7 @@ public interface FlowConstant {
/**
* 部门id
*/
String INITIATOR_DEPT_ID = "deptId";
String INITIATOR_DEPT_ID = "initiatorDeptId";
/**
* 委托

View File

@ -23,10 +23,10 @@ public class SpelRuleComponent {
private final DeptService deptService;
/**
* 通过部门id获取部门负责人
* 通过发起人部门id获取部门负责人
*/
public Long selectDeptLeaderById(Long deptId) {
Long leaderId = deptService.selectDeptLeaderById(deptId);
public Long selectDeptLeaderById(Long initiatorDeptId) {
Long leaderId = deptService.selectDeptLeaderById(initiatorDeptId);
if (ObjectUtil.isNull(leaderId)) {
throw new ServiceException("当前部门未设置负责人,请联系管理员操作。");
}

View File

@ -16,7 +16,7 @@ CREATE TABLE `flow_spel` (
PRIMARY KEY (`id`)
) ENGINE = InnoDB COMMENT='流程spel表达式定义表';
INSERT INTO `ry-vue`.`flow_spel` (`id`, `component_name`, `method_name`, `method_params`, `view_spel`, `remark`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `tenant_id`) VALUES (1, 'spelRuleComponent', 'selectDeptLeaderById', 'deptId', '#{@spelRuleComponent.selectDeptLeaderById(#deptId)}', '根据部门id获取部门负责人', '0', '0', 103, 1, sysdate(), 1, sysdate(), '000000');
INSERT INTO `ry-vue`.`flow_spel` (`id`, `component_name`, `method_name`, `method_params`, `view_spel`, `remark`, `status`, `del_flag`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `tenant_id`) VALUES (1, 'spelRuleComponent', 'selectDeptLeaderById', 'initiatorDeptId', '#{@spelRuleComponent.selectDeptLeaderById(#initiatorDeptId)}', '根据部门id获取部门负责人', '0', '0', 103, 1, sysdate(), 1, sysdate(), '000000');
INSERT INTO `ry-vue`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (11801, '流程spel表达式', 11616, 1, 'spel', 'workflow/spel/index', NULL, 1, 0, 'C', '0', '0', 'workflow:spel:list', 'input', 103, 1, sysdate(), 1, sysdate(), '流程spel达式定义菜单');
INSERT INTO `ry-vue`.`sys_menu` (`menu_id`, `menu_name`, `parent_id`, `order_num`, `path`, `component`, `query_param`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_dept`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES (11802, '流程spel达式定义查询', 11801, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'workflow:spel:query', '#', 103, 1, sysdate(), NULL, NULL, '');