EmergencyRiskEventAddDTO.java 2.6 KB
package com.skua.modules.emergency.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.skua.core.aspect.annotation.Dict;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 应急风险事件
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class EmergencyRiskEventAddDTO {

	/**风险点类型(字典 emergency_risk_event_risktype)*/
	@Excel(name = "风险点类型(字典 emergency_risk_event_risktype)", width = 15)
    @ApiModelProperty(value = "风险点类型(字典 emergency_risk_event_risktype)")
	@NotBlank
	private String riskPointType;
	/**风险点名称*/
	@Excel(name = "风险点名称", width = 15)
    @ApiModelProperty(value = "风险点名称")
	@NotBlank
	private String riskName;
	/**危险源描述*/
	@Excel(name = "危险源描述", width = 15)
    @ApiModelProperty(value = "危险源描述")
	@NotBlank
	private String riskDesc;
	/**风险照片(url,用,隔开)*/
	@Excel(name = "风险照片(url,用,隔开)", width = 15)
    @ApiModelProperty(value = "风险照片(url,用,隔开)")
	private String riskImgs;
	/**事故类型 (字典 emergency_risk_event_eventtype)*/
	@Excel(name = "事故类型 (字典 emergency_risk_event_eventtype)", width = 15)
    @ApiModelProperty(value = "事故类型 (字典 emergency_risk_event_eventtype)")
	private String eventType;
	/**极端风险等级 (字典 emergency_risk_event_level)*/
	@Excel(name = "极端风险等级 (字典 emergency_risk_event_level)", width = 15)
    @ApiModelProperty(value = "极端风险等级 (字典 emergency_risk_event_level)")
	@NotBlank
	private String extremeLevel;
	/**上报人(用户id)*/
	@Excel(name = "上报人(用户id)", width = 15)
    @ApiModelProperty(value = "上报人(用户id)")
	private String reportUser;
	/**上报时间*/
    @ApiModelProperty(value = "上报时间")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private Date reportDate;
	/**所属厂站*/
	@Excel(name = "所属厂站", width = 15)
	@ApiModelProperty(value = "所属厂站")
	private String departId;
	/**流程定义id*/
	@Excel(name = "流程定义id", width = 15)
	@ApiModelProperty(value = "流程定义id")
	private java.lang.String processDefinitionId;
	/**流程实例id*/
	@Excel(name = "流程实例id", width = 15)
	@ApiModelProperty(value = "流程实例id")
	private java.lang.String processInstanceId;

}