package org.jeecg.modules.plan.entity;

import java.io.Serializable;
import java.util.Date;
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 org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 检查记录表
 * @Author: jeecg-boot
 * @Date:   2020-12-14
 * @Version: V1.0
 */
@Data
@TableName("bu_check_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_check_record对象", description="检查记录表")
public class BuCheckRecord implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键")
    private String id;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @ApiModelProperty(value = "所属部门")
    private String sysOrgCode;
	/**计划名称*/
	@Excel(name = "计划名称", width = 15)
    @ApiModelProperty(value = "计划名称")
    private String planId;
    /**计划类型*/
    @Excel(name = "计划类型", width = 15,dicCode = "plan_type")
    @ApiModelProperty(value = "计划类型")
    @Dict(dicCode = "plan_type")
    private String planType;
	/**设备id*/
	@Excel(name = "设备id", width = 15)
    @ApiModelProperty(value = "设备id")
    @Dict(dictTable = "bu_device",dicText = "device_name",dicCode = "id")
    private String deviceId;
	/**计划创建时间*/
	@Excel(name = "计划创建时间", width = 15, 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 planCreateTime;
	/**计划状态*/
	@Excel(name = "计划状态", width = 15)
    @ApiModelProperty(value = "计划状态")
    @Dict(dicCode = "plan_status")
    private String planStatus;
    /**计划内容*/
    @Excel(name = "计划内容", width = 15)
    @ApiModelProperty(value = "计划内容")
    private String planContent;
    /**发起人id*/
    @Excel(name = "发起人id", width = 15)
    @ApiModelProperty(value = "发起人id")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "username")
    private String initiateId;
	/**检查人id*/
	@Excel(name = "检查人id", width = 15)
    @ApiModelProperty(value = "检查人id")
    @Dict(dictTable = "sys_user",dicText = "realname",dicCode = "username")
    private String checkId;
    /**检查人部门*/
    @Excel(name = "检查人部门", width = 15)
    @ApiModelProperty(value = "检查人部门")
//    @Dict(dictTable = "sys_depart",dicText = "depart_name",dicCode = "org_code")
    private String orgCode;
	/**开始时间*/
	@Excel(name = "开始时间", width = 15, 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 beginTime;
	/**结束时间*/
    @Excel(name = "结束时间", width = 15, 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 endTime;
	/**故障描述*/
	@Excel(name = "故障描述", width = 15)
    @ApiModelProperty(value = "故障描述")
    private String faultDes;
	/**检查结果*/
	@Excel(name = "检查结果", width = 15)
    @ApiModelProperty(value = "检查结果")
    private String checkResult;
	/**检查记录*/
	@Excel(name = "检查记录", width = 15)
    @ApiModelProperty(value = "检查记录")
    private String checkRecord;
	/**现场拍照*/
	@Excel(name = "现场拍照", width = 15)
    @ApiModelProperty(value = "现场拍照")
    private String img;
    /**检查类型*/
    @Excel(name = "检查类型", width = 15,dicCode = "check_type")
    @ApiModelProperty(value = "检查类型")
    @Dict(dicCode = "check_type")
    private String checkType;
    /**设备范围*/
    @Excel(name = "设备范围", width = 15)
    @ApiModelProperty(value = "设备范围")
    private String deviceRange;
    /**检查方法*/
    @Excel(name = "检查方法", width = 15)
    @ApiModelProperty(value = "检查方法")
    private String checkMethod;
    /**检查项目*/
    @Excel(name = "检查项目", width = 15)
    @ApiModelProperty(value = "检查项目")
    private String checkItem;
//    /**检查内容*/
//    @Excel(name = "检查内容", width = 15)
//    @ApiModelProperty(value = "检查内容")
//    private String checkContent;
    /**计划结束时间*/
    @Excel(name = "计划结束时间", width = 15, format = "yyyy-MM-dd")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "计划结束时间")
    private Date planEndTime;
    /**部门名称*/
    @Excel(name = "部门名称", width = 15)
    @ApiModelProperty(value = "部门名称")
    private String orgName;
}
