fix(89311): 标准主解读人重新分发列表数据权限问题

This commit is contained in:
yjz
2024-08-23 17:31:14 +08:00
parent ef26ceef9e
commit 37c4e8203d
@@ -1771,6 +1771,21 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe
processStandardInterpretClauseList) {
// 重置状态
processStandardInterpretClause.setIsReject(YesOrNoEnum.NO.getValue());
// 重新分发节点特殊处理
if (StandardInterpretCommon.MASTER_INTERPRET_AGAIN_DISTRIBUTE.equals(node)){
String taskId = standardInterpretFlowDTO.getProcessApprovalRecord().getTaskId();
Task task = taskService.createTaskQuery().taskId(taskId).singleResult();
String snowflake = String.valueOf(runtimeService.getVariable(task.getExecutionId(),
StandardInterpretCommon.SNOWFLAKE));
// 分发出去后删除当前snowflake
List<String> snowflakeList =
new ArrayList<>(Arrays.asList(processStandardInterpretClause.getSnowFlake().split(",")));
if (CollectionUtils.isNotEmpty(snowflakeList)
&& snowflakeList.contains(snowflake)){
snowflakeList.remove(snowflake);
processStandardInterpretClause.setSnowFlake(String.join(",", snowflakeList));
}
}
}
processStandardInterpretClauseService.saveOrUpdateBatch(processStandardInterpretClauseList);