From 6293f54a53c98ffdf8f1e044051f3f28feae2a87 Mon Sep 17 00:00:00 2001 From: gjh <1421wake> Date: Wed, 23 Apr 2025 10:35:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=E6=8E=89=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E8=AF=84=E5=88=86=E7=9A=84=E8=AE=B0=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../platform/service/impl/EvaluationInfoServiceImpl.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ruoyi-modules/guoyan-platform/src/main/java/org/dromara/platform/service/impl/EvaluationInfoServiceImpl.java b/ruoyi-modules/guoyan-platform/src/main/java/org/dromara/platform/service/impl/EvaluationInfoServiceImpl.java index ce03b53..ffc8828 100644 --- a/ruoyi-modules/guoyan-platform/src/main/java/org/dromara/platform/service/impl/EvaluationInfoServiceImpl.java +++ b/ruoyi-modules/guoyan-platform/src/main/java/org/dromara/platform/service/impl/EvaluationInfoServiceImpl.java @@ -198,6 +198,11 @@ public class EvaluationInfoServiceImpl implements IEvaluationInfoService { } LambdaQueryWrapper lqw = buildQueryWrapperForScore(bo); Page result = baseMapper.selectVoPage(pageQuery.build(), lqw); + // 过滤掉没有评分的记录 + List filteredRecords = result.getRecords().stream() + .filter(item -> item.getCheckRating() != null) + .collect(Collectors.toList()); + result.setRecords(filteredRecords); return TableDataInfo.build(result); }