优化或签任务参与者归档无法区分处理人weight标记为1
This commit is contained in:
parent
54e0e2c667
commit
40daecbbee
@ -64,6 +64,12 @@ public class FlwTaskActor implements Serializable {
|
||||
* <p>
|
||||
* 票签任务时,该值为不同处理人员的分量比例
|
||||
* </p>
|
||||
* <p>
|
||||
* 代理任务时,该值为 1 时为代理人
|
||||
* </p>
|
||||
* <p>
|
||||
* 或签任务时,该值为 1 时为或签处理人
|
||||
* </p>
|
||||
*/
|
||||
protected Integer weight;
|
||||
/**
|
||||
|
@ -327,6 +327,10 @@ public class TaskServiceImpl implements TaskService {
|
||||
|
||||
// 删除会签任务
|
||||
return taskDao.deleteByIds(taskIds);
|
||||
} else if (PerformType.orSign.eq(flwTask.getPerformType())) {
|
||||
// 或签情况处理,标记完成任务参与者 weight 为 1
|
||||
taskActors.stream().filter(t -> Objects.equals(flowCreator.getCreateId(), t.getActorId()))
|
||||
.findFirst().ifPresent(t -> t.setWeight(1));
|
||||
}
|
||||
|
||||
// 迁移任务至历史表
|
||||
|
Loading…
x
Reference in New Issue
Block a user