From 83f5c1053263c863ab91db44d3191e2334f360b6 Mon Sep 17 00:00:00 2001 From: wr <1754607820@qq.com> Date: Mon, 6 Jan 2025 10:14:27 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../njcn/gather/result/service/impl/ResultServiceImpl.java | 4 +++- storage/pom.xml | 5 +++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/detection/src/main/java/com/njcn/gather/result/service/impl/ResultServiceImpl.java b/detection/src/main/java/com/njcn/gather/result/service/impl/ResultServiceImpl.java index c3a08c17..bb884256 100644 --- a/detection/src/main/java/com/njcn/gather/result/service/impl/ResultServiceImpl.java +++ b/detection/src/main/java/com/njcn/gather/result/service/impl/ResultServiceImpl.java @@ -787,10 +787,12 @@ public class ResultServiceImpl implements IResultService { storage.setDevNum(param.getDevNum()); storage.setCode(param.getCode()); List list = pqScriptCheckDataService.list(new MPJLambdaWrapper() + .distinct() + .select(PqScriptCheckData::getHarmNum) .eq(PqScriptCheckData::getScriptId, param.getScriptId()) .eq(PqScriptCheckData::getIndex, param.getIndex()) ); - List harmNum = list.stream().map(PqScriptCheckData::getHarmNum).collect(Collectors.toList()); + List harmNum = list.stream().map(PqScriptCheckData::getHarmNum).distinct().collect(Collectors.toList()); ResultVO resultVO=new ResultVO(); if(CollUtil.isEmpty(harmNum)){ resultVO.setRawData(adNonHarmonicService.listNonHarmData(storage)); diff --git a/storage/pom.xml b/storage/pom.xml index 22b106f2..b5d0639d 100644 --- a/storage/pom.xml +++ b/storage/pom.xml @@ -43,6 +43,11 @@ system 1.0.0 + + com.alibaba + fastjson + 1.2.83 +