/*
 *      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.ht.entity.basic;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

/**
 * 基础信息-设备信息实体类
 *
 * @author BladeX
 * @since 2022-03-16
 */
@Data
@TableName("T_DEVICE")
@ApiModel(value = "Device对象", description = "基础信息-设备信息")
public class Device implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 创建人
	 */
//	@ExcelIgnore
	@ApiModelProperty(value = "创建人")
	@TableField(fill = FieldFill.INSERT)
	private String createdBy;
	/**
	 * 创建时间
	 */
//	@ExcelIgnore
	@ApiModelProperty(value = "创建时间")
	@TableField(fill = FieldFill.INSERT)
	private Date createdTime;
	/**
	 * 更新人
	 */
//	@ExcelIgnore
	@ApiModelProperty(value = "更新人")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private String updatedBy;
	/**
	 * 更新时间
	 */
//	@ExcelIgnore
	@ApiModelProperty(value = "更新时间")
	@TableField(fill = FieldFill.INSERT_UPDATE)
	private Date updatedTime;

	/**
	 * ID
	 */
	@ApiModelProperty(value = "ID")
	@TableId("ID")
	private String id;
	/**
	 * 名称
	 */
	@ApiModelProperty(value = "名称")
	@TableField("NAME")
	private String name;
	/**
	 * 设备编号
	 */
	@ApiModelProperty(value = "设备编号")
	@TableField("DEVICE_NUM")
	private String deviceNum;
	/**
	 * 二维码
	 */
	@ApiModelProperty(value = "二维码")
	@TableField("QR_CODE")
	private String qrCode;
	/**
	 * 设备类型
	 */
	@ApiModelProperty(value = "设备类型")
	@TableField("TYPE_ID")
	private String typeId;
	/**
	 * 设备类型
	 */
	@ApiModelProperty(value = "类型层级")
	@TableField("TYPE_RANK")
	private String typeRank;
	/**
	 * 所属机构
	 */
	@ApiModelProperty(value = "所属机构")
	@TableField("DEP_ID")
	private String depId;
	/**
	 * 放置地址
	 */
	@ApiModelProperty(value = "放置地址")
	@TableField("ADDRESS")
	private String address;
	/**
	 * 购买时间
	 */
	@ApiModelProperty(value = "购买时间")
	@TableField("BUY_DATE")
	private String buyDate;
	/**
	 * 安装时间
	 */
	@ApiModelProperty(value = "安装时间")
	@TableField("INSTALL_DATE")
	private String installDate;
	/**
	 * 设备处置时间（原到期时间）
	 */
	@ApiModelProperty(value = "设备处置时间")
	@TableField("END_DATE")
	private String endDate;
	/**
	 * 维保期限
	 */
	@ApiModelProperty(value = "维保期限")
	@TableField("MAINTENANCE_DATE")
	@JsonFormat(pattern = "yyyy-MM-dd")
	private Date maintenanceDate;
	/**
	 * 设备厂商
	 */
	@ApiModelProperty(value = "设备厂商")
	@TableField("COMPANY")
	private String company;
	/**
	 * 设备型号
	 */
	@ApiModelProperty(value = "设备型号")
	@TableField("MODEL_NUM")
	private String modelNum;
	/**
	 * 设备照片
	 */
	@ApiModelProperty(value = "设备照片")
	@TableField("PIC_IDS")
	private String picIds;
	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@TableField("REMARK")
	private String remark;
	/**
	 * 设备使用状态;0-未使用 1-正常使用中 2-超期使用中 3-已处置
	 */
	@ApiModelProperty(value = "设备使用状态;0-未使用 1-正常使用中 2-超期使用中 3-已处置")
	@TableField("USAGE_STATE")
	private String usageState;
	/**
	 * 设备检查状态;4-检查中，5-检查完成，6-待整改，7-整改完成，8-超期未检查
	 */
	@ApiModelProperty(value = "设备检查状态;4-检查中，5-检查完成，6-待整改，7-整改完成，8-超期未检查")
	@TableField("STATE")
	private String state;
	/**
	 * 原设备使用状态;0-未使用 1-正常使用中 2-超期使用中 3-超期未使用
	 */
	@ApiModelProperty(value = "原设备使用状态")
	@TableField("ORG_STATE")
	private String orgState;
	/**
	 *检查频次
	 */
	@ApiModelProperty(value = "检查频次")
	@TableField("FREQUENCY")
	private String frequency;
	/**
	 * 逻辑删除标识符;1-删除，0-正常
	 */
	@ApiModelProperty(value = "逻辑删除标识符;0-正常，1-删除")
	@TableField("DEL_FLAG")
	@TableLogic
	private String delFlag;
	/**
	 * 像素
	 */
	@ApiModelProperty(value = "像素")
	@TableField("PIXEL")
	private String pixel;
	/**
	 * 满足标准
	 */
	@ApiModelProperty(value = "满足标准")
	@TableField("STANDARD")
	private String standard;
	/**
	 * 最近检查时间
	 */
	@ApiModelProperty(value = "最近检查时间")
	@TableField("LATEST_INSPECTION_TIME")
	private Date latestInspectionTime;
	/**
	 * 设备状态（0-故障，1-正常）
	 */
	@ApiModelProperty(value = "设备状态（0-故障，1-正常）")
	@TableField("DEVICE_STATE")
	private String deviceState;
	/**
	 * 附件groupName
	 */
	@ApiModelProperty(value = "附件groupName")
	@TableField("GROUP_NAME")
	private String groupName;

	@ApiModelProperty(value = "角色ID")
	private String roleId;

	@ApiModelProperty(value = "检查人ID")
	private String dutyUserId;

	@ApiModelProperty(value = "检查人姓名")
	private String dutyUserName;

	/**
	 * 安装方
	 */
	@ApiModelProperty(value = "安装方")
	@TableField("INSTALLER")
	private String installer;
}
