public class FormPropertyConvertUtil extends Object
| 构造器和说明 |
|---|
FormPropertyConvertUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
toJavaProperties(EntityVO entityVO,
List<PropertyVO> javaProperties)
将实体中的属性信息更新到Java属性列表中,并补充缺失的字段以保证结构一致性。
|
static void |
updateEntityByForm(List<FormPropertyVO> properties,
EntityVO entityVO)
把网格列表属性复制到实体属性中,仅保留部分关键字段不覆盖。
|
static void |
updateFormByEntity(EntityVO entityVO,
List<FormPropertyVO> properties)
把实体属性复制到表单属性中,并确保所有实体字段都反映在表单上。
|
public static void toJavaProperties(EntityVO entityVO, List<PropertyVO> javaProperties)
entityVO - 实体对象,提供源属性信息javaProperties - 目标Java属性列表,将被更新或扩展public static void updateEntityByForm(List<FormPropertyVO> properties, EntityVO entityVO)
properties - 网格列表属性集合,作为数据来源entityVO - 实体对象,其内部属性将被更新public static void updateFormByEntity(EntityVO entityVO, List<FormPropertyVO> properties)
entityVO - 实体对象,提供原始属性信息properties - 表单属性列表,将根据实体属性进行更新或扩展Copyright © 2025. All rights reserved.