/*
 *      Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
 *
 *  Redistribution and use in source and binary forms, with or without
 *  modification, are permitted provided that the following conditions are met:
 *
 *  Redistributions of source code must retain the above copyright notice,
 *  this list of conditions and the following disclaimer.
 *  Redistributions in binary form must reproduce the above copyright
 *  notice, this list of conditions and the following disclaimer in the
 *  documentation and/or other materials provided with the distribution.
 *  Neither the name of the dreamlu.net developer nor the names of its
 *  contributors may be used to endorse or promote products derived from
 *  this software without specific prior written permission.
 *  Author: Chill 庄骞 (smallchill@163.com)
 */
package org.security.trans.dailyDuties.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.security.ht.entity.common.FlowEntity;

import java.io.Serializable;
import java.util.Date;

/**
 * 任务-设备检查表实体类
 *
 * @author BladeX
 * @since 2022-03-25
 */
@Data
@TableName("T_DEVICE_INSPECTION")
@ApiModel(value = "DeviceInspection对象", description = "任务-设备检查表")
public class DeviceInspection extends FlowEntity implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 设备ID
	 */
	@ApiModelProperty(value = "设备ID")
	@TableField("DEVICE_ID")
	private String deviceId;
	/**
	 * 设备名称
	 */
	@ApiModelProperty(value = "设备名称")
	@TableField("DEVICE_NAME")
	private String deviceName;
	/**
	 * 设备编号
	 */
	@ApiModelProperty(value = "设备型号")
	@TableField("DEVICE_MODEL_NUM")
	private String deviceModelNum;
	/**
	 * 检查机构
	 */
	@ApiModelProperty(value = "检查机构")
	@TableField("CREATE_DEPT_ID")
	private String createDeptId;
	/**
	 * 检查人
	 */
	@ApiModelProperty(value = "检查人")
	@TableField("INSPECT_USER")
	private String inspectUser;

	/**
	 * 审核人
	 */
	@ApiModelProperty(value = "审核人")
	@TableField("AUDIT_USER")
	private String auditUser;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@TableField("REMARK")
	private String remark;
	/**
	 * 状态
	 */
	@ApiModelProperty(value = "状态;4-检查中，5-检查完成，6-待整改，7-整改完成")
	@TableField("STATUS")
	private String status;
	/**
	 * 部门id
	 */
	@ApiModelProperty(value = "部门id")
	@TableField("DEPT_ID")
	private String deptId;
	/**
	 * 逻辑删除标识符;0-删除，1-正常
	 */
	@ApiModelProperty(value = "逻辑删除标识符;0-删除，1-正常")
	@TableField("DEL_FLAG")
	@TableLogic
	private String delFlag;

	@ApiModelProperty(value = "检查期限")
	@TableField("CHECK_DEADLINE")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date checkDeadline;

	/**
	 * 检查流程定义id
	 */
	@ApiModelProperty(value = "检查流程定义id")
	@TableField("INS_PROCESS_DEFINITION_ID")
	private String insProcessDefinitionId;

	/**
	 * 检查流程实例id
	 */
	@ApiModelProperty(value = "检查流程实例id")
	@TableField("INS_PROCESS_INSTANCE_ID")
	private String insProcessInstanceId;

	/**
	 * 整改流程定义id
	 */
	@ApiModelProperty(value = "整改流程定义id")
	@TableField("REC_PROCESS_DEFINITION_ID")
	private String recProcessDefinitionId;

	/**
	 * 整改流程实例id
	 */
	@ApiModelProperty(value = "整改流程实例id")
	@TableField("REC_PROCESS_INSTANCE_ID")
	private String recProcessInstanceId;

	/**
	 * 机构名称
	 */
	@ApiModelProperty(value = "机构名称")
	@TableField("dept_name")
	private String deptName;
}
