kongzy
2024-07-12 28aaf2ffa1dbb860a292ba330a7e9362e60e7832
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
133
134
135
136
137
138
139
140
141
142
package com.gkhy.assess.system.domain;
 
import com.baomidou.mybatisplus.annotation.*;
 
import java.time.LocalDateTime;
 
import com.fasterxml.jackson.annotation.JsonInclude;
import com.gkhy.assess.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;
 
import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
 
import static com.fasterxml.jackson.annotation.JsonInclude.Include.NON_NULL;
 
/**
 * <p>
 * 风险评估表
 * </p>
 *
 * @author kzy
 * @since 2023-12-12 10:46:54
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("ass_risk_estimate")
@ApiModel(value = "AssRiskEstimate对象", description = "风险评估表")
@JsonInclude(NON_NULL)
public class AssRiskEstimate extends BaseEntity {
 
    private static final long serialVersionUID = 1L;
 
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
 
    @ApiModelProperty(value = "项目id")
    @TableField("project_id")
    private Long projectId;
 
    @NotBlank(message = "行业风险特性不能为空")
    @Length(min =1,max =  500,message = "行业风险特性长度1~500字")
    @ApiModelProperty(value = "行业风险特性(500字以内)",required = true)
    @TableField("risk_character")
    private String riskCharacter;
 
    @NotBlank(message = "周边环境不能为空")
    @Length(min =1,max =  500,message = "周边环境长度1~500字")
    @ApiModelProperty(value = "周边环境(500字以内)",required = true)
    @TableField("surroundings")
    private String surroundings;
 
 
    @Length(min =0,max =  500,message = "主要生产装置长度不能超过500字")
    @ApiModelProperty(value = "主要生产装置(500字以内)",required = true)
    @TableField("equipment")
    private String equipment;
 
    @Length(min =0,max =  500,message = "生产工艺概况长度不能超过500字")
    @ApiModelProperty(value = "生产工艺概况(500字以内)",required = true)
    @TableField("technology")
    private String technology;
 
    @NotNull(message = "评价费用是否在本机构所接受的范围内不能为空")
    @ApiModelProperty(value = "评价费用是否在本机构所接受的范围内(0否,1是)",required = true)
    @TableField("is_accept_chargess")
    private Boolean isAcceptChargess;
 
    @NotNull(message = "项目的可行性不能为空")
    @ApiModelProperty(value = "项目的可行性(0否,1是)",required = true)
    @TableField("is_feasibility")
    private Boolean isFeasibility;
 
    @NotNull(message = "是否能在约定的时间内完成评价报告不能为空")
    @ApiModelProperty(value = "是否能在约定的时间内完成评价报告(0否,1是)",required = true)
    @TableField("is_finish_report")
    private Boolean isFinishReport;
 
    @NotNull(message = "评价项目是否在本机构资质业务范围内不能为空")
    @ApiModelProperty(value = "评价项目是否在本机构资质业务范围内(0否,1是)",required = true)
    @TableField("is_in_business")
    private Boolean isInBusiness;
 
    @NotNull(message = "是否需要聘请相关专业的技术专家不能为空")
    @ApiModelProperty(value = "是否需要聘请相关专业的技术专家(0否,1是)",required = true)
    @TableField("is_need_expert")
    private Boolean isNeedExpert;
 
    @NotNull(message = "评价人员专业构成是否满足评价项目需要不能为空")
    @ApiModelProperty(value = "评价人员专业构成是否满足评价项目需要(0否,1是)",required = true)
    @TableField("is_satisfy_need")
    private Boolean isSatisfyNeed;
 
    @NotNull(message = "评估时间不能为空")
    @ApiModelProperty(value = "评估时间(格式yyyy-MM-dd 00:00:00)",required = true)
    @TableField("estimate_date")
    private LocalDateTime estimateDate;
 
    @NotBlank(message = "技术负责人意见不能为空")
    @Length(min =1,max =  30,message = "技术负责人意见长度1~30字")
    @ApiModelProperty(value = "技术负责人意见(30字以内)",required = true)
    @TableField("tech_opinion")
    private String techOpinion;
 
    @NotBlank(message = "风险评估人意见不能为空")
    @Length(min =1,max =  30,message = "风险评估人意见长度1~30字")
    @ApiModelProperty(value = "风险评估人意见(30字以内)",required = true)
    @TableField("risk_opinion")
    private String riskOpinion;
 
    @NotBlank(message = "机构评价负责人意见不能为空")
    @Length(min =1,max =  30,message = "机构评价负责人意见长度1~30字")
    @ApiModelProperty(value = "机构评价负责人意见(30字以内)",required = true)
    @TableField("agency_opinon")
    private String agencyOpinon;
 
    @ApiModelProperty("审批状态(0暂存,1审核中,2审批通过,3审批驳回,4已作废 默认1)")
    @TableField("state")
    private Integer state;
 
    @ApiModelProperty("删除标志(0正常,1删除,默认0)")
    @TableField("del_flag")
    private Integer delFlag;
 
    @Version
    @ApiModelProperty("乐观锁")
    @TableField("version")
    private Integer version;
 
    @Valid
    @NotNull(message = "项目不能为空")
    @ApiModelProperty("项目")
    @TableField(exist = false)
    private AssProject project;
 
}