From c253b07103605781512799b45f85e42d8dfe5d14 Mon Sep 17 00:00:00 2001 From: liujun Date: Wed, 28 Feb 2024 16:52:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=89=E9=A1=B9=E5=88=B6=E5=BA=A6=E5=BA=93bu?= =?UTF-8?q?g=E4=BF=AE=E5=A4=8D=201=E3=80=81=E6=A0=87=E7=AD=BE=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E7=A9=BA=E5=86=85=E5=AE=B9=202=E3=80=81=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=8C=89=E9=92=AE=E5=8E=BB=E6=8E=89=E6=9D=83=E9=99=90?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= 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 3cb3a945..89aab676 100644 --- a/src/main/java/com/zcloud/service/depository/impl/TextLibraryServiceImpl.java +++ b/src/main/java/com/zcloud/service/depository/impl/TextLibraryServiceImpl.java @@ -95,7 +95,7 @@ public class TextLibraryServiceImpl implements TextLibraryService { for (PageData entity : list) { List _labels = libraryLabelsMapper.findBylibraryId(entity); // 安全操作规程 - entity.put("labels", _labels.stream().filter(n -> n.get("BUS_LABEL_FACTORY_ID") != null).collect(Collectors.toList())); + entity.put("labels", _labels.stream().filter(n -> StringUtils.isNotEmpty(n.getString("BUS_LABEL_FACTORY_ID"))).collect(Collectors.toList())); entity.put("TYPES", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("TYPES")).collect(Collectors.toList())); entity.put("SPECIFICATION_TYPES", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("SPECIFICATION_TYPES")).collect(Collectors.toList())); entity.put("ATTRIBUTE_LIST", _labels.stream().filter(n -> n.get("CATEGORY") != null).filter(n -> n.getString("CATEGORY").equals("ATTRIBUTE_LIST")).collect(Collectors.toList()));