feat:增加查找替换逻辑

This commit is contained in:
wangyu 2021-10-14 16:22:41 +08:00
parent d52aa851d6
commit 8c4f0d0307
1 changed files with 7 additions and 0 deletions

View File

@ -226,6 +226,13 @@ public class BeanProperty {
property
.prop("type", "range")
.prop("placeholder", Arrays.asList("开始时间", "结束时间"));
} else if (annotations.isPresent(DBRefValue.class)) {
// 添加了数据库引用注解自动注入类型给前端使用
DBRefValue dbRefValue = annotations.get(DBRefValue.class).synthesize();
processDbRef(dbRefValue.value()).ifPresent(ref -> {
property.setType(BeanPropertyType.DB_REF);
property.prop("uri", ref).prop("multiple", "true");
});
}
}
break;