|
@@ -187,7 +187,13 @@ public class ColumnArticleServiceImpl extends ServiceImpl<ColumnArticleMapper, C
|
|
|
public List<ColumnArticleVo> getArticle(ColumnArticleSelectDto dto) {
|
|
|
List<ColumnArticleVo> list = getList(dto);
|
|
|
|
|
|
+ Map<Long, String> map = columnMenuService.getList(new ColumnMenuSelectDto()).stream().collect(Collectors.toMap(ColumnMenuVo::getId, ColumnMenuVo::getName));
|
|
|
+ Map<Long, String> map1 = columnMenuSubService.getList(new ColumnMenuSubSelectDto()).stream().collect(Collectors.toMap(ColumnMenuSubVo::getId, ColumnMenuSubVo::getName));
|
|
|
+
|
|
|
list.forEach(x->{
|
|
|
+ x.setColumnIdName(map.getOrDefault(x.getColumnId(),""));
|
|
|
+ x.setSubIdName(map1.getOrDefault(x.getSubId(),""));
|
|
|
+
|
|
|
//获取封面图片
|
|
|
List<Long> businessIdList = new ArrayList<>();
|
|
|
businessIdList.add(x.getId());
|