From 8cd78c8c067f8ca124e6ba81f8c0171583244891 Mon Sep 17 00:00:00 2001 From: Aoi_Tori <2547614904@qq.com> Date: Thu, 10 Jul 2025 18:51:22 +0800 Subject: [PATCH] 2025/7/10 --- .../impl/PartInformationServiceImpl.java | 3 + .../mapper/part/PartInformationMapper.xml | 100 +++++++----------- 2 files changed, 41 insertions(+), 62 deletions(-) diff --git a/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java b/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java index 184eef0c..c4c840e6 100644 --- a/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java +++ b/src/main/java/com/spring/modules/part/service/impl/PartInformationServiceImpl.java @@ -2515,6 +2515,9 @@ public class PartInformationServiceImpl extends ServiceImpl(data.getPage(), data.getLimit()), data); } + Set set = new HashSet<>(list.getRecords()); + List list1 = new ArrayList<>(set); + list.setRecords(list1); return new PageUtils(list); } diff --git a/src/main/resources/mapper/part/PartInformationMapper.xml b/src/main/resources/mapper/part/PartInformationMapper.xml index fcfa2bd6..58084ca6 100644 --- a/src/main/resources/mapper/part/PartInformationMapper.xml +++ b/src/main/resources/mapper/part/PartInformationMapper.xml @@ -1365,36 +1365,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -