From f29b14b754425b7d4dddd2795ef9d6304cc5cc81 Mon Sep 17 00:00:00 2001 From: liujun Date: Tue, 12 Mar 2024 15:20:33 +0800 Subject: [PATCH] =?UTF-8?q?14468=20=E4=B8=89=E9=A1=B9=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E9=83=BD=E6=9C=89=20=E6=96=B0=E5=A2=9E=20=E8=BF=98?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E4=B9=8B=E5=89=8D=E5=BC=B9=E7=AA=97=E7=9A=84?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../zcloud/service/depository/impl/TextLibraryServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/zcloud/service/depository/impl/TextLibraryServiceImpl.java b/src/main/java/com/zcloud/service/depository/impl/TextLibraryServiceImpl.java index 0be87697..ade228ed 100644 --- a/src/main/java/com/zcloud/service/depository/impl/TextLibraryServiceImpl.java +++ b/src/main/java/com/zcloud/service/depository/impl/TextLibraryServiceImpl.java @@ -135,7 +135,7 @@ public class TextLibraryServiceImpl implements TextLibraryService { if (info != null && info.size() > 0) { List _labels = libraryLabelsMapper.findBylibraryId(info); if ("0".equals(info.getString("ASSOCIATION")) || "1".equals(info.getString("ASSOCIATION")) || "2".equals(info.getString("ASSOCIATION"))) { - info.put("labels", _labels.stream().filter(n -> n.get("BUS_LABEL_FACTORY_ID") != null).collect(Collectors.toList())); + info.put("labels", _labels.stream().filter(n -> (n.get("BUS_LABEL_FACTORY_ID") != null && org.apache.commons.lang3.StringUtils.isNotBlank(n.getString("BUS_LABEL_FACTORY_ID")))).collect(Collectors.toList())); info.put("TYPES", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("TYPES")).map(Warden::addDic).collect(Collectors.toList())); info.put("SPECIFICATION_TYPES", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("SPECIFICATION_TYPES")).map(Warden::addDic).collect(Collectors.toList())); info.put("CATEGORY_LIST", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("CATEGORY_LIST")).map(Warden::addDic).collect(Collectors.toList()));