xiangpei
2024-08-16 9d30f3aba92b1fe90eaecd486113f544f0f18b7c
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
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 {
 
    /** 关联一机一档id */
    private String tableName;
 
    /** elementui table prop */
    private String propName;
 
    /** elementui table label */
    private String labelValue;
 
    /** 值 */
    private String columnValue;
 
    public static DynamicColumnVO getVoByEntity(@NonNull DynamicColumn entity, DynamicColumnVO vo) {
        if(vo == null) {
            vo = new DynamicColumnVO();
        }
        BeanUtils.copyProperties(entity, vo);
        return vo;
    }
 
}