package com.gkhy.assess.system.domain;
|
|
import com.baomidou.mybatisplus.annotation.IdType;
|
import com.baomidou.mybatisplus.annotation.TableField;
|
import com.baomidou.mybatisplus.annotation.TableId;
|
import com.baomidou.mybatisplus.annotation.TableName;
|
|
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;
|
|
@ApiModelProperty("乐观锁")
|
@TableField("version")
|
private Integer version;
|
|
@Valid
|
@NotNull(message = "项目不能为空")
|
@ApiModelProperty("项目")
|
@TableField(exist = false)
|
private AssProject project;
|
|
}
|