|
|
@ -181,17 +181,8 @@ public class AiLabelServiceImpl implements IAiLabelService { |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<AiLabelVo> selectLabelList() { |
|
|
|
List<SysPostVo> sysPostVos = sysPostService.selectPostAll(); |
|
|
|
|
|
|
|
List<Long> postIdList = Optional.ofNullable(sysPostVos) |
|
|
|
.orElse(Collections.emptyList()) |
|
|
|
.stream() |
|
|
|
.map(SysPostVo::getPostId) |
|
|
|
.distinct() |
|
|
|
.toList(); |
|
|
|
|
|
|
|
List<AiLabelPostVo> aiLabelList = aiLabelPostService.getAiLabelList(); |
|
|
|
return aiLabelList.stream().filter(p-> postIdList.contains(p.getPostId())) |
|
|
|
return aiLabelList.stream() |
|
|
|
.map(aiLabel -> { |
|
|
|
AiLabelVo aiLabelVo = new AiLabelVo(); |
|
|
|
aiLabelVo.setLabelId(aiLabel.getLabelId()); |
|
|
|