package com.ycl.platform.domain.vo;
|
|
import com.ycl.platform.base.AbsVo;
|
import com.ycl.platform.domain.entity.DynamicColumn;
|
import org.springframework.lang.NonNull;
|
import org.springframework.beans.BeanUtils;
|
import lombok.Data;
|
|
/**
|
* 动态列展示
|
*
|
* @author xp
|
* @since 2024-08-16
|
*/
|
@Data
|
public class DynamicColumnVO extends AbsVo {
|
/** 表名 */
|
private String tableName;
|
|
/** elementui table prop */
|
private String propName;
|
|
/** elementui 字段名 */
|
private String labelValue;
|
|
/** 字段值 */
|
private String columnValue;
|
/** 关联数据的id */
|
private Integer refId;
|
/** value表的id */
|
private Integer valueId;
|
public static DynamicColumnVO getVoByEntity(@NonNull DynamicColumn entity, DynamicColumnVO vo) {
|
if(vo == null) {
|
vo = new DynamicColumnVO();
|
}
|
BeanUtils.copyProperties(entity, vo);
|
return vo;
|
}
|
|
}
|