From 38b0f20ea933c4232309a77806fcf333fe7aea36 Mon Sep 17 00:00:00 2001 From: hzj <826100833@qq.com> Date: Thu, 10 Oct 2024 18:20:51 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E8=AE=A1=E7=B1=BB=E5=9E=8B=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E9=A1=B5=E9=9D=A2=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/service/impl/CsStatisticalSetPOServiceImpl.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/CsStatisticalSetPOServiceImpl.java b/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/CsStatisticalSetPOServiceImpl.java index 607db070a..1cb4c617b 100644 --- a/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/CsStatisticalSetPOServiceImpl.java +++ b/pqs-system/system-boot/src/main/java/com/njcn/system/service/impl/CsStatisticalSetPOServiceImpl.java @@ -18,10 +18,7 @@ import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; +import java.util.*; import java.util.stream.Collectors; /** @@ -69,6 +66,7 @@ public class CsStatisticalSetPOServiceImpl extends MppServiceImpl dictTreeVOS = sysDicTreePOService.queryByPid(id); List collect; if (!CollectionUtils.isEmpty(dictTreeVOS)) { + dictTreeVOS = dictTreeVOS.stream().sorted(Comparator.comparing(DictTreeVO::getSort)).collect(Collectors.toList()); List collect3 = dictTreeVOS.stream().map(DictTreeVO::getId).collect(Collectors.toList()); collect3.add(id); QueryWrapper queryWrap = new QueryWrapper<>();