From f49622515192a11878628b8eecbc7315671ae562 Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期四, 09 一月 2025 15:25:25 +0800
Subject: [PATCH] 在获取相关业务类型下的属性时,未在属性中定义的数据直接跳过

---
 Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsQueryTemplateImpl.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsQueryTemplateImpl.java b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsQueryTemplateImpl.java
index 2988f09..666d847 100644
--- a/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsQueryTemplateImpl.java
+++ b/Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsQueryTemplateImpl.java
@@ -1760,6 +1760,9 @@
                         AttributeDef att = platformClientUtil.getAttributeService().getAttributeDefByName(abName_);
                         if(att == null || "".equals(att.oid)){
                             att = allSysAttr.get(abName_.toLowerCase());
+                            if(att == null || "".equals(att.oid)){
+                                continue;
+                            }
                         }
                         att.name = pName + abName_ ;
                         AttributeDefDTO attrDto = new AttributeDefDTO();

--
Gitblit v1.9.3