feat(REQ-3300) - 调整单据详情响应逻辑

This commit is contained in:
wangli 2025-02-27 22:44:38 +08:00
parent 65d8967cb8
commit 158a90aaa6

View File

@ -216,12 +216,8 @@ public class ChangeRecordConfirmServiceImpl extends ServiceImpl<ChangeRecordConf
}
// 3 构建关联单位与人员最终处理成一个类型与单位下对应多个确认人
Map<String, List<ChangeRecordConfirm>> listMap = list.stream().collect(Collectors.groupingBy(e -> {
if (Objects.isNull(e.getNodeId())) {
return e.getType() + "#" + e.getOuId() + "#0";
}
return e.getType() + "#" + e.getOuId() + "#" + e.getNodeId();
}));
Map<String, List<ChangeRecordConfirm>> listMap = list.stream()
.collect(Collectors.groupingBy(e -> e.getType() + "#" + e.getOuId()));
return this.buildRelationOuAndPerson(listMap, workspaceId);
}