heheng
2024-11-20 2d27b24029adafdbfc5703b38a519d65beda6a68
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
package com.gkhy.system.domain;
 
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gkhy.common.annotation.Excel;
import com.gkhy.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
 
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
 
 
/**
 * 考评管理对象 evaluation
 *
 * @author expert
 * @date 2024-11-13
 */
@TableName(resultMap = "com.gkhy.system.mapper.EvaluationMapper.EvaluationResult")
@ApiModel(value = "考评管理对象", description = "考评管理表")
public class Evaluation extends BaseEntity {
    private static final long serialVersionUID = 1L;
 
    /**
     * $column.columnComment
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    /**
     * 分值
     */
    @Excel(name = "分值")
    @NotNull(message ="分值不能为空" )
    @ApiModelProperty(value = "分值",required = true)
    private Long score;
 
    /**
     * 内容
     */
    @Excel(name = "内容")
    @NotBlank(message ="内容不能为空" )
    @ApiModelProperty(value = "内容",required = true)
    private String content;
 
    /**
     * 类型1加分项2扣分项
     */
    @Excel(name = "类型1加分项2扣分项")
    @NotBlank(message ="类型不能为空" )
    @ApiModelProperty(value = "类型1加分项2扣分项",required = true)
    private String scoreType;
 
    /**
     * 删除标志(0代表存在,1代表删除,默认0)
     */
    private Long delFlag;
 
    /**
     * 乐观锁
     */
    @Excel(name = "乐观锁")
    private Long version;
 
    public void setId(Long id) {
        this.id = id;
    }
 
    public Long getId() {
        return id;
    }
 
    public void setScore(Long score) {
        this.score = score;
    }
 
    public Long getScore() {
        return score;
    }
 
    public void setContent(String content) {
        this.content = content;
    }
 
    public String getContent() {
        return content;
    }
 
    public void setScoreType(String scoreType) {
        this.scoreType = scoreType;
    }
 
    public String getScoreType() {
        return scoreType;
    }
 
    public void setDelFlag(Long delFlag) {
        this.delFlag = delFlag;
    }
 
    public Long getDelFlag() {
        return delFlag;
    }
 
    public void setVersion(Long version) {
        this.version = version;
    }
 
    public Long getVersion() {
        return version;
    }
 
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("score", getScore())
                .append("content", getContent())
                .append("scoreType", getScoreType())
                .append("delFlag", getDelFlag())
                .append("version", getVersion())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}