feat: 增加上传组件链接
This commit is contained in:
parent
54d4d0716c
commit
a31e7f6f68
@ -142,7 +142,11 @@ public class BeanProperty {
|
|||||||
// 当存在db-ref时,解析为动态数据源
|
// 当存在db-ref时,解析为动态数据源
|
||||||
Optional<String> optional = processDbRef(clazz);
|
Optional<String> optional = processDbRef(clazz);
|
||||||
if (optional.isPresent()) {
|
if (optional.isPresent()) {
|
||||||
|
if ("Attachment".equals(descriptor.getPropertyType().getSimpleName())) {
|
||||||
|
property.prop("attachment", true);
|
||||||
|
} else {
|
||||||
property.prop("uri", optional.get());
|
property.prop("uri", optional.get());
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
property.setType(BeanPropertyType.STRING);
|
property.setType(BeanPropertyType.STRING);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user