From 1c1411e2658592bc384e279cf5df16980de0481c Mon Sep 17 00:00:00 2001 From: wangmaojian Date: Sat, 26 Oct 2024 11:23:44 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E7=94=9F=E6=88=90=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../repository/adaptor/BefBaseAdaptor.java | 52 +++++++++---------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/business-entity-engine-repository/src/main/java/com/inspur/edp/bef/engine/repository/adaptor/BefBaseAdaptor.java b/business-entity-engine-repository/src/main/java/com/inspur/edp/bef/engine/repository/adaptor/BefBaseAdaptor.java index 17b45fa..cb01a07 100644 --- a/business-entity-engine-repository/src/main/java/com/inspur/edp/bef/engine/repository/adaptor/BefBaseAdaptor.java +++ b/business-entity-engine-repository/src/main/java/com/inspur/edp/bef/engine/repository/adaptor/BefBaseAdaptor.java @@ -853,32 +853,32 @@ public abstract class BefBaseAdaptor extends EntityRelationalAdaptor { return false; } - @Override - public HashMap getAssosPropDBMapping(String propName)//生成引用解析的时候 会用到。 - { - for (IGspCommonField element : this.bizEntityObject.getContainElements()) { - if (!element.getLabelID().equalsIgnoreCase(propName)) - continue; - //如果是多值多列UDT - if (element.getIsUdt()) { - UnifiedDataTypeDef udt = CMEngineUtil.getMetadataContent(element.getUdtID()); - if (udt == null) - throw new BefRespositoryException(ErrorCodes.BEF_ENGINE_2017, false, element.getLabelID(),element.getUdtID(), - getBEInfo(), getBizEntityObjInfo(bizEntityObject), getBizElementInfo(element)); - - - - - if (udt instanceof ComplexDataTypeDef) { - ComplexDataTypeDef complexUdt = (ComplexDataTypeDef) udt; - return getMultiUdtAssosPropDBMapping(complexUdt, element); - } - } - //todo 后续关联的也加上 - break; - } - return new HashMap(); - } +// @Override +// public HashMap getAssosPropDBMapping(String propName)//生成引用解析的时候 会用到。 +// { +// for (IGspCommonField element : this.bizEntityObject.getContainElements()) { +// if (!element.getLabelID().equalsIgnoreCase(propName)) +// continue; +// //如果是多值多列UDT +// if (element.getIsUdt()) { +// UnifiedDataTypeDef udt = CMEngineUtil.getMetadataContent(element.getUdtID()); +// if (udt == null) +// throw new BefRespositoryException(ErrorCodes.BEF_ENGINE_2017, false, element.getLabelID(),element.getUdtID(), +// getBEInfo(), getBizEntityObjInfo(bizEntityObject), getBizElementInfo(element)); +// +// +// +// +// if (udt instanceof ComplexDataTypeDef) { +// ComplexDataTypeDef complexUdt = (ComplexDataTypeDef) udt; +// return getMultiUdtAssosPropDBMapping(complexUdt, element); +// } +// } +// //todo 后续关联的也加上 +// break; +// } +// return new HashMap(); +// } public HashMap getMultiUdtAssosPropDBMapping(ComplexDataTypeDef complexUdt, IGspCommonField item) { HashMap map = new HashMap(); -- Gitee From 94ae2bddf30ed82fe5250d8d6e2cc205496a52d0 Mon Sep 17 00:00:00 2001 From: wangmaojian Date: Thu, 19 Dec 2024 09:06:06 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=9B=B4=E6=8E=A5?= =?UTF-8?q?=E5=B8=A6=E5=87=BA=E5=85=B3=E8=81=94=E5=B8=A6=E5=87=BA=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E7=9A=84=E5=9C=BA=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edp/bef/engine/repository/adaptor/BefBaseAdaptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business-entity-engine-repository/src/main/java/com/inspur/edp/bef/engine/repository/adaptor/BefBaseAdaptor.java b/business-entity-engine-repository/src/main/java/com/inspur/edp/bef/engine/repository/adaptor/BefBaseAdaptor.java index 94538bd..1416d80 100644 --- a/business-entity-engine-repository/src/main/java/com/inspur/edp/bef/engine/repository/adaptor/BefBaseAdaptor.java +++ b/business-entity-engine-repository/src/main/java/com/inspur/edp/bef/engine/repository/adaptor/BefBaseAdaptor.java @@ -893,7 +893,7 @@ public class BefBaseAdaptor extends EntityRelationalAdaptor { @Override public Object readProperty(String propertyName, ICefReader reader) { - for (var element : bizEntityObject.getContainElements()) { + for (var element : bizEntityObject.getAllElementList(true)) { if (!element.getLabelID().equals(propertyName)) continue; if (element.getIsUdt()) { -- Gitee