优化或签任务参与者归档无法区分处理人weight标记为1

This commit is contained in:
hubin 2024-12-21 10:53:26 +08:00
parent 54e0e2c667
commit 40daecbbee
2 changed files with 10 additions and 0 deletions

View File

@ -64,6 +64,12 @@ public class FlwTaskActor implements Serializable {
* <p>
* 票签任务时该值为不同处理人员的分量比例
* </p>
* <p>
* 代理任务时该值为 1 时为代理人
* </p>
* <p>
* 或签任务时该值为 1 时为或签处理人
* </p>
*/
protected Integer weight;
/**

View File

@ -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));
}
// 迁移任务至历史表