【代码优化】工作流:去除 DELEGATE 委托中的状态,适合通过 DELEGATE STATE 读取

This commit is contained in:
YunaiV 2024-11-02 14:11:55 +08:00
parent 16d18db51c
commit a122253a93
2 changed files with 1 additions and 4 deletions

View File

@ -21,7 +21,6 @@ public enum BpmTaskStatusEnum {
CANCEL(4, "已取消"),
RETURN(5, "已退回"),
DELEGATE(6, "委派中"),
/**
* 使用场景

View File

@ -764,9 +764,7 @@ public class BpmTaskServiceImpl implements BpmTaskService {
taskService.setOwner(taskId, task.getAssignee());
// 3.2 执行委派将任务委派给 delegateUser
taskService.delegateTask(taskId, reqVO.getDelegateUserId().toString());
// 3.3 更新 task 状态
// 为什么不更新原因因为原因目前主要给审批通过不通过时使用
updateTaskStatus(taskId, BpmTaskStatusEnum.DELEGATE.getStatus());
// 补充说明委托不单独设置状态如果需要可通过 Task DelegationState 字段判断是否为 DelegationState.PENDING 委托中
}
@Override