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 a7a44c3..f430b10 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 @@ -407,7 +407,10 @@ public class BeanProperty { } // 处理值生成策略,此处可清除原策略 if (ArrayUtils.isNotEmpty(prop.generated())) { - property.extra.put(BeanProps.GENERATED, MergedAnnotations.from(prop.mapping()).get(MappedTo.class).asMap()); + property.extra.put(BeanProps.GENERATED, MergedAnnotations.from(prop.generated()).get(Generation.class).asMap()); + if (StringUtils.isBlank((String)property.extra.get(BeanProps.COMPONENT))) { + property.extra.put(BeanProps.COMPONENT, "input-hidden"); + } } else { property.extra.remove(BeanProps.GENERATED); if ("input-hidden".equals(property.extra.get(BeanProps.COMPONENT))) {