feat:增加查找替换逻辑
This commit is contained in:
parent
d52aa851d6
commit
8c4f0d0307
@ -226,6 +226,13 @@ public class BeanProperty {
|
|||||||
property
|
property
|
||||||
.prop("type", "range")
|
.prop("type", "range")
|
||||||
.prop("placeholder", Arrays.asList("开始时间", "结束时间"));
|
.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;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user