From b5b8611b6c3d6758b5bd29be74fcf58eaa76e08a Mon Sep 17 00:00:00 2001 From: wangyu <727842003@qq.com> Date: Tue, 30 Mar 2021 22:37:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0db=E5=BC=95=E7=94=A8?= =?UTF-8?q?=E6=B3=A8=E8=A7=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/flyfish/framework/beans/meta/BeanProperty.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java b/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java index e88e1f5..a3bc2c4 100644 --- a/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java +++ b/flyfish-web/src/main/java/com/flyfish/framework/beans/meta/BeanProperty.java @@ -110,7 +110,7 @@ public class BeanProperty { DBRefValue dbRefValue = field.getAnnotation(DBRefValue.class); Document document = AnnotationUtils.findAnnotation(dbRefValue.value(), Document.class); if (null != document) { - property.prop("uri", document.value()); + property.prop("uri", document.collection()); } else { property.setType(BeanPropertyType.STRING); } @@ -133,7 +133,7 @@ public class BeanProperty { // 当存在db-ref时,解析为动态数据源 Document document = AnnotationUtils.findAnnotation(clazz, Document.class); if (null != document) { - property.prop("uri", document.value()); + property.prop("uri", document.collection()); } else { property.setType(BeanPropertyType.STRING); }