mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-13 07:33:42 +08:00
fix 修复 流程节点自定义变量配置重复 key 时解析报 Duplicate key 的问题
This commit is contained in:
parent
91a71f5c25
commit
9fd1d56831
@ -262,8 +262,7 @@ public class FlwNodeExtServiceImpl implements NodeExtService, IFlwNodeExtService
|
||||
Map<String, String> variables = StringUtils.str2List(value, StringUtils.SEPARATOR, true, true).stream()
|
||||
.map(s -> StringUtils.split(s, "="))
|
||||
.filter(arr -> arr.length == 2)
|
||||
.collect(Collectors.toMap(arr -> arr[0], arr -> arr[1]));
|
||||
|
||||
.collect(Collectors.toMap(arr -> arr[0], arr -> arr[1], (l, r) -> l));
|
||||
nodeExtVo.setVariables(variables);
|
||||
} else {
|
||||
// 未知扩展类型,记录日志
|
||||
|
||||
Loading…
Reference in New Issue
Block a user