新火炬后端单体项目初始化代码
cuilei
22 小时以前 6074864314f5452fd023c34ab11118c393969bcc
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
41
42
43
44
45
46
47
48
49
50
package org.jeecg.modules.eam.vo;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecg.modules.eam.entity.EamProcessParameters;
import org.jeecgframework.poi.excel.annotation.Excel;
import java.io.Serializable;
 
@Data
@Accessors(chain = true)
public class ProcessParametersVo implements Serializable {
    
    /**主键*/
    @TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
    /**参数编码*/
    @Excel(name = "参数编码", width = 25)
    @ApiModelProperty(value = "参数编码")
    private String parameterCode;
    /**参数名称*/
    @Excel(name = "参数名称", width = 25)
    @ApiModelProperty(value = "参数名称")
    private String parameterName;
    /**参数分类*/
    @Excel(name = "参数分类", width = 15, dicCode = "process_parameters_category")
    @ApiModelProperty(value = "参数分类")
    @Dict(dicCode = "process_parameters_category")
    private String parameterCategory;
    /**计量单位*/
    @Excel(name = "计量单位", width = 15)
    @ApiModelProperty(value = "计量单位")
    private String parameterUnit;
    /**参数范围*/
    @Excel(name = "参数范围", width = 15)
    @ApiModelProperty(value = "参数范围")
    private String parameterPeriod;
 
    public ProcessParametersVo(EamProcessParameters eamProcessParameters) {
        this.id = eamProcessParameters.getId();
        this.parameterCode = eamProcessParameters.getParameterCode();
        this.parameterName = eamProcessParameters.getParameterName();
        this.parameterCategory = eamProcessParameters.getParameterCategory();
        this.parameterUnit = eamProcessParameters.getParameterUnit();
    }
}