diff --git a/dk-modules/system/src/main/java/org/dromara/system/service/impl/AiLabelServiceImpl.java b/dk-modules/system/src/main/java/org/dromara/system/service/impl/AiLabelServiceImpl.java index 749d1d9..c926496 100644 --- a/dk-modules/system/src/main/java/org/dromara/system/service/impl/AiLabelServiceImpl.java +++ b/dk-modules/system/src/main/java/org/dromara/system/service/impl/AiLabelServiceImpl.java @@ -181,17 +181,8 @@ public class AiLabelServiceImpl implements IAiLabelService { @Override public List selectLabelList() { - List sysPostVos = sysPostService.selectPostAll(); - - List postIdList = Optional.ofNullable(sysPostVos) - .orElse(Collections.emptyList()) - .stream() - .map(SysPostVo::getPostId) - .distinct() - .toList(); - List 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()); diff --git a/dk-modules/system/src/main/resources/mapper/system/AiLabelPostMapper.xml b/dk-modules/system/src/main/resources/mapper/system/AiLabelPostMapper.xml index 79fa80b..8a9ede1 100644 --- a/dk-modules/system/src/main/resources/mapper/system/AiLabelPostMapper.xml +++ b/dk-modules/system/src/main/resources/mapper/system/AiLabelPostMapper.xml @@ -13,6 +13,20 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"