提交 8e171f98 authored 作者: 马路路's avatar 马路路

PC承运端-履约进度列表接口-查询异常上报信息--更新abnormalRemark字段数据

上级 ce2ae05a
......@@ -706,6 +706,12 @@ public class PerformanceProgressServiceImpl implements PerformanceProgressServi
return new HashMap<>();
}
// 以订单编号作为key,多条异常上报信息作为value,构建map集合
return list.stream().collect(Collectors.toMap(InternalReportRouteExceptionFeignVO::getOrderNo, InternalReportRouteExceptionFeignVO::getExceptionInfo));
Map<String, List<InternalReportRouteExceptionFeignVO>> reportRouteExceptionMap =
list.stream().collect(Collectors.groupingBy(InternalReportRouteExceptionFeignVO::getOrderNo));
// 构建map集合,key为订单编号,value为异常上报信息
return reportRouteExceptionMap.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey,
entry -> entry.getValue().stream().map(InternalReportRouteExceptionFeignVO::getExceptionInfo)
.collect(Collectors.joining(","))));
}
}
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论