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 742b98b..7c19a9d 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 @@ -142,7 +142,11 @@ public class BeanProperty { // 当存在db-ref时,解析为动态数据源 Optional optional = processDbRef(clazz); if (optional.isPresent()) { - property.prop("uri", optional.get()); + if ("Attachment".equals(descriptor.getPropertyType().getSimpleName())) { + property.prop("attachment", true); + } else { + property.prop("uri", optional.get()); + } } else { property.setType(BeanPropertyType.STRING); }