From 979f699f2f54398b3d53153d044a777beb09d87f Mon Sep 17 00:00:00 2001 From: yangwei <867012372@qq.com> Date: Fri, 13 Jun 2025 10:18:56 +0800 Subject: [PATCH] =?UTF-8?q?[feat]=E4=BF=AE=E5=A4=8D=E5=9B=BE=E7=89=87?= =?UTF-8?q?=E6=AF=94=E5=AF=B9=E6=A0=87=E7=AD=BE=E6=9F=A5=E8=AF=A2=E9=87=8D?= =?UTF-8?q?=E5=A4=8D=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/impl/AiLabelServiceImpl.java | 11 +---------- .../mapper/system/AiLabelPostMapper.xml | 16 +++++++++++++++- 2 files changed, 16 insertions(+), 11 deletions(-) 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"