update - 添加任务扩展记录表,记录每个节点审批通过的人
This commit is contained in:
parent
3233148096
commit
d69fc225e3
@ -33,6 +33,7 @@ public class InternalTaskEventListener implements BpmnTaskEventListener {
|
||||
entity.setTaskDefinitionKey(delegateTask.getTaskDefinitionKey());
|
||||
entity.setTaskId(delegateTask.getId());
|
||||
entity.setStatus(BpmnProcessInstanceResultEnum.APPROVED.getStatus());
|
||||
entity.setAssignee(delegateTask.getAssignee());
|
||||
hiTaskInstService.save(entity);
|
||||
}
|
||||
}
|
||||
|
||||
@ -47,4 +47,10 @@ public class ExtAxHiTaksInst extends BaseEntity<ExtAxHiTaksInst> {
|
||||
@TableField("status")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 同意的人
|
||||
*/
|
||||
@TableField("assignee")
|
||||
private String assignee;
|
||||
|
||||
}
|
||||
|
||||
@ -12,4 +12,4 @@ CREATE TABLE IF NOT EXISTS EXT_AX_HI_TASKINST
|
||||
`is_delete` bigint NOT NULL DEFAULT '0' COMMENT '是否删除',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE = InnoDB COMMENT '流程历史任务信息扩展表';
|
||||
create index idx_proc_def_id on EXT_AX_HI_TASKINST (proc_inst_id, task_definition_key, task_id);
|
||||
create index idx_proc_def_id on EXT_AX_HI_TASKINST (proc_inst_id, task_definition_key, task_id, assignee);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user