From 9e960f6fb4d29047ce4c459b3ff47fa9e480f013 Mon Sep 17 00:00:00 2001 From: zhn <947514737@qq.com> Date: Wed, 20 Sep 2023 15:22:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E4=BB=B6=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=8C=89=E9=A1=B9=E7=9B=AE=E5=90=8D=E7=A7=B0?= =?UTF-8?q?=E6=AD=A3=E5=BA=8F=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/ProjectLawsInventoryEOServiceImpl.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java index a18d0c095..2b3e83858 100644 --- a/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java +++ b/jero-boot/jero-boot-modules/src/main/java/com/jero/modules/project/service/impl/ProjectLawsInventoryEOServiceImpl.java @@ -11901,6 +11901,19 @@ public class ProjectLawsInventoryEOServiceImpl extends ServiceImpl nventoryEOList = lawsInventoryEO.getProjectLawsInventoryEOS(); + if(!nventoryEOList.isEmpty()){ + Collator comparator = Collator.getInstance(Locale.CHINESE); + Collections.sort(nventoryEOList,(e1,e2)->{ + String e1ProjectName = StringUtils.isNotBlank(e1.getProjectName()) ? e1.getAttestationType() : ""; + String e2ProjectName = StringUtils.isNotBlank(e2.getProjectName()) ? e2.getAttestationType() : ""; + return comparator.compare(e1ProjectName,e2ProjectName); + }); + lawsInventoryEO.setProjectLawsInventoryEOS(nventoryEOList); + } + } } }