EquipmentDefectManagement.java 4.8 KB
package com.skua.modules.equipment.entity;

import com.baomidou.mybatisplus.annotation.IdType;
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;

/**
 * 设备缺陷管理
 */
@Data
@TableName("equipment_defect_management")
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="equipment_defect_management对象", description="设备缺陷管理")
public class EquipmentDefectManagement extends FlowEntity {

	/**主键*/
	@TableId(type = IdType.ID_WORKER_STR)
    @ApiModelProperty(value = "主键")
	private String id;
	/**设备ID*/
	@Excel(name = "设备ID", width = 15)
    @ApiModelProperty(value = "设备ID")
	@Dict(dictTable = "equipment_info",dicText = "equipment_name",dicCode = "id")
	private String equipmentId;
	/**设备名称*/
	@Excel(name = "设备名称", width = 15)
	@ApiModelProperty(value = "设备名称")
	private String equipmentName;
	/**缺陷级别*/
	@Excel(name = "缺陷级别", width = 15)
    @ApiModelProperty(value = "缺陷级别")
	@Dict(dicCode = "defect_level")
	private String defectLevel;
	/**缺陷上报人*/
	@Excel(name = "缺陷上报人", width = 15)
    @ApiModelProperty(value = "缺陷上报人")
	@Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
	private String defectReportUser;
	/**缺陷上报时间*/
	@Excel(name = "缺陷上报时间", width = 15)
    @ApiModelProperty(value = "缺陷上报时间")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date defectReportDate;
	/**缺陷描述*/
	@Excel(name = "缺陷描述", width = 15)
    @ApiModelProperty(value = "缺陷描述")
	private String defectDescription;
	/**语音附件附件*/
	@Excel(name = "语音附件附件", width = 15)
    @ApiModelProperty(value = "语音附件附件")
	private String voiceEnclosure;
	/**图片附件*/
	@Excel(name = "图片附件", width = 15)
    @ApiModelProperty(value = "图片附件")
	private String pictureEnclosure;
	/**视频附件*/
	@Excel(name = "视频附件", width = 15)
    @ApiModelProperty(value = "视频附件")
	private String videoEnclosure;
	/**处理结果*/
	@Excel(name = "处理结果", width = 15)
    @ApiModelProperty(value = "处理结果")
	private String handleResult;
	/**处理人*/
	@Excel(name = "处理人", width = 15)
	@ApiModelProperty(value = "处理人")
	@Dict(dictTable = "sys_user",dicText = "realname",dicCode = "id")
	private String handleUser;
	/**处理时间*/
	@Excel(name = "处理时间", width = 15)
	@ApiModelProperty(value = "处理时间")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
	private java.util.Date handleDate;
	/**处理措施*/
	@Excel(name = "处理措施", width = 15)
	@ApiModelProperty(value = "处理措施")
	private String handleMeasures;
	/**备注*/
	@Excel(name = "备注", width = 15)
	@ApiModelProperty(value = "备注")
	private String remake;
	/**创建人id*/
	@Excel(name = "创建人id", width = 15)
    @ApiModelProperty(value = "创建人id")
	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 java.util.Date createTime;
	/**修改人id*/
	@Excel(name = "修改人id", width = 15)
    @ApiModelProperty(value = "修改人id")
	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 java.util.Date updateTime;
	/**删除标识,0有效,1删除*/
	@Excel(name = "删除标识,0有效,1删除", width = 15)
    @ApiModelProperty(value = "删除标识,0有效,1删除")
	private Integer delFlag;
	/**缺陷类型*/
	@Excel(name = "缺陷类型", width = 15)
	@ApiModelProperty(value = "缺陷类型")
	@Dict(dictTable = "equipment_defect_type",dicText = "defect_type",dicCode = "id")
	private String equipmentDefectTypeId;
	/**
	 * 流程定义id
	 */
	@ApiModelProperty(value = "流程定义id")
	private String processDefinitionId;
	/**
	 * 流程实例id
	 */
	@ApiModelProperty(value = "流程实例id")
	private String processInstanceId;
}