|
@@ -56,9 +56,9 @@ public class AlgorithmGoodsServiceImpl extends ServiceImpl<AlgorithmGoodsMapper,
|
|
|
PageBean<AlgorithmGoodsDto.Vo> dtoPageBean = toPageBean(AlgorithmGoodsDto.Vo.class, iPage);
|
|
|
//设置平台名称
|
|
|
dtoPageBean.setRecords(
|
|
|
- dtoPageBean.getRecords().stream().
|
|
|
- map(item -> item.setAlgorithmName(algorithmMap.get(item.getAlgorithmId()).getName()))
|
|
|
- .collect(Collectors.toList())
|
|
|
+ dtoPageBean.getRecords().stream().map(
|
|
|
+ item -> item.setAlgorithmName(algorithmMap.get(item.getAlgorithmId()).getName())
|
|
|
+ ).collect(Collectors.toList())
|
|
|
);
|
|
|
return R.ok(dtoPageBean);
|
|
|
}
|