AjhRectificationInfo.java 6.6 KB
package com.skua.modules.ajh.entity;

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 com.fasterxml.jackson.annotation.JsonFormat;
import com.skua.core.aspect.annotation.Dict;
import com.skua.modules.flow.core.entity.FlowEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 隐患检查
 */
@Data
@TableName("ajh_rectification_info")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ajh_rectification_info对象", description="隐患检查")
public class AjhRectificationInfo extends FlowEntity {

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
	private String id;
	/**指令单id*/
	@Excel(name = "指令单id", width = 15)
    @ApiModelProperty(value = "指令单id")
	private String recOrdId;
	/**隐患部位*/
	@Excel(name = "隐患部位 (构筑物id sys_struct_dict#id)", width = 15)
    @ApiModelProperty(value = "隐患部位(构筑物id sys_struct_dict#id)")
	@Dict(dicCode = "id",dictTable="sys_struct_dict",dicText="struct_name")
	private String recOrdBody;
	/**隐患描述*/
	@Excel(name = "隐患描述", width = 15)
    @ApiModelProperty(value = "隐患描述")
	private String recOrdDesc;
	/**隐患描述附件*/
	@Excel(name = "隐患描述附件", width = 15)
    @ApiModelProperty(value = "隐患描述附件")
	private String recOrdDescFile;
	/**整改建议*/
	@Excel(name = "整改建议", width = 15)
    @ApiModelProperty(value = "整改建议")
	private String recOrdAdvi;


	/**整改责任人*/
	@Excel(name = "整改责任人", width = 15)
    @ApiModelProperty(value = "整改责任人")
	@Dict(dicCode = "id",dictTable="sys_user",dicText="realname")
	private String recOrdPerson;
	/**整改确认人*/
	@Excel(name = "整改确认人", width = 15)
	@ApiModelProperty(value = "整改确认人")
	@Dict(dicCode = "id",dictTable="sys_user",dicText="realname")
	private String recOrdUser;
	/**隐患照片*/
	@Excel(name = "隐患照片", width = 15)
    @ApiModelProperty(value = "隐患照片")
	private String recOrdBeforeimg;
	/**整改结果*/
	@Excel(name = "整改结果", width = 15)
    @ApiModelProperty(value = "整改结果")
	private String recOrdResult;
	/**整改完成后照片*/
	@Excel(name = "整改完成后照片", width = 15)
    @ApiModelProperty(value = "整改完成后照片")
	private String recOrdAfterimg;

	/** '隐患分类 (字典 rectification_info_classify) */
	@Excel(name = "'隐患分类 (字典 rectification_info_classify)", width = 15)
	@ApiModelProperty(value = "'隐患分类 (字典 rectification_info_classify)")
	@Dict(dicCode = "rectification_info_classify")
	private String recOrdClassify;
	/** '隐患上报人 */
	@Excel(name = "'隐患上报人", width = 15)
	@ApiModelProperty(value = "'隐患上报人")
	@Dict(dicCode = "id",dictTable="sys_user",dicText="realname")
	private String recOrdReportUser;
	/** '隐患上报时间 */
	@Excel(name = "'隐患上报时间", width = 15)
	@ApiModelProperty(value = "'隐患上报时间")
	private String recOrdReportDate;
	/** '整改开始时间 */
	@Excel(name = "'整改开始时间", width = 15)
	@ApiModelProperty(value = "'整改开始时间")
	private String recOrdEndDate;
	/** '整改结束时间 */
	@Excel(name = "'整改结束时间", width = 15)
	@ApiModelProperty(value = "'整改结束时间")
	private String recOrdStartDate;
	/** '风险等级 (字典 rectification_info_level) */
	@Excel(name = "'风险等级 (字典 rectification_info_level)", width = 15)
	@ApiModelProperty(value = "'风险等级 (字典 rectification_info_level)")
	@Dict(dicCode = "rectification_info_level")
	private String recOrdLevel;
	/** '整改完成时间 */
	@Excel(name = "'整改完成时间", width = 15)
	@ApiModelProperty(value = "'整改完成时间")
	@Deprecated // 和 整改结束时间 字段冲突
	private String recOrdFinishDate;

	/**处理结果(字典  rectification_info_handleresult)*/
	@Excel(name = "处理结果(字典  rectification_info_handleresult)", width = 15)
	@ApiModelProperty(value = "处理结果(字典  rectification_info_handleresult)")
	@Dict(dicCode = "rectification_info_handleresult")
	private String handleResult;

	/**流程定义id*/
	@Excel(name = "流程定义id", width = 15)
	@ApiModelProperty(value = "流程定义id")
	private String processDefinitionId;
	/**流程实例id*/
	@Excel(name = "流程实例id", width = 15)
	@ApiModelProperty(value = "流程实例id")
	private String processInstanceId;

	/**状态*/
	@Excel(name = "状态", width = 15)
	@ApiModelProperty(value = "状态")
	@Dict(dicCode = "recordStatus")
	private Integer recOrdStatus;
	/**所属厂区*/
	@Excel(name = "所属厂区", width = 15)
	@Dict(dictTable = "sys_depart", dicCode="id", dicText = "depart_name")
    @ApiModelProperty(value = "所属厂区")
	private String departId;
	/**创建人员*/
	@Excel(name = "创建人员", width = 15)
    @ApiModelProperty(value = "创建人员")
	private String createBy;
	/**创建时间*/
	@Excel(name = "创建时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
	private Date createTime;
	/**修改人员*/
	@Excel(name = "修改人员", width = 15)
    @ApiModelProperty(value = "修改人员")
	private String updateBy;
	/**修改时间*/
	@Excel(name = "修改时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "修改时间")
	private Date updateTime;
	/**修改部门*/
	@Excel(name = "修改部门", width = 15)
    @ApiModelProperty(value = "修改部门")
	private String createDept;
	/**修改集团*/
	@Excel(name = "修改集团", width = 15)
    @ApiModelProperty(value = "修改集团")
	private String createCmpy;
	/**标识*/
	@Excel(name = "标识", width = 15)
    @ApiModelProperty(value = "标识")
	private Integer delFlag;

	@ApiModelProperty(value = "开始时间")
	@TableField(exist=false)
	private String startTime;
	@ApiModelProperty(value = "结束时间")
	@TableField(exist=false)
	private String endTime;
}