fuliqi
2025-01-06 7a93f4097430703dc60c4aee0240ed348a0ab1df
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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;
    }
 
}