package org.jeecg.modules.repair.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 io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

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

/**
 * @Description: 维修记录表
 * @Author: jeecg-boot
 * @Date:   2020-12-22
 * @Version: V1.0
 */
@Data
@TableName("bu_repair_record")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_repair_record对象", description="维修记录表")
public class BuRepairRecord 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;
    /**设备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)
    @ApiModelProperty(value = "设备名称")
//    @Dict(dictTable = "bu_device",dicText = "device_name",dicCode = "id")
    private String deviceName;
	/**设备状态*/
	@Excel(name = "设备状态", width = 15,dicCode = "device_status")
    @ApiModelProperty(value = "设备状态")
    @Dict(dicCode = "device_status")
    private String deviceStatus;
	/**提交人*/
	@Excel(name = "提交人", width = 15)
    @ApiModelProperty(value = "提交人")
    @Dict(dictTable = "sys_user", dicText = "realname", dicCode = "id")
    private String submitId;
	/**提交时间*/
	@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 submitTime;
	/**现象描述*/
	@Excel(name = "现象描述", width = 15)
    @ApiModelProperty(value = "现象描述")
    private String description;
	/**图片*/
	@Excel(name = "图片", width = 15)
    @ApiModelProperty(value = "图片")
    private String img;
	/**委派人*/
	@Excel(name = "委派人", width = 15)
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "委派人")
    private String assignerId;
	/**维修人*/
	@Excel(name = "维修人", width = 15)
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "维修人")
    private String maintainerId;
	/**开始时间*/
	@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 startTime;
	/**结束时间*/
	@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 endTime;
	/**维修方法*/
	@Excel(name = "维修方法", width = 15)
    @ApiModelProperty(value = "维修方法")
    private String method;
	/**质检人*/
	@Excel(name = "质检人", width = 15)
	@Dict(dictTable = "sys_user", dicText = "realname", dicCode = "username")
    @ApiModelProperty(value = "质检人")
    private String inspector;
	/**视频*/
	@Excel(name = "视频", width = 15)
    @ApiModelProperty(value = "视频")
    private String video;
	/**派工时间*/
	@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 assignTime;
	/**故障等级*/
	@Excel(name = "故障等级", width = 15,dicCode = "repair_grade")
    @ApiModelProperty(value = "故障等级")
    @Dict(dicCode = "repair_grade")
    private String repairGrade;
	/**故障类型*/
	@Excel(name = "故障类型", width = 15,dicCode = "repair_type")
    @ApiModelProperty(value = "故障类型")
    @Dict(dicCode = "repair_type")
    private String repairType;
	/**维修班组*/
	@Excel(name = "维修班组", width = 15)
    @ApiModelProperty(value = "维修班组")
//    @Dict(dictTable = "sys_depart",dicText = "depart_name",dicCode = "id")
    private String orgCode;
	/**故障原因*/
	@Excel(name = "故障原因", width = 15)
    @ApiModelProperty(value = "故障原因")
    private String reason;
	/**验收时间*/
	@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 acceptTime;
	/**维修结果*/
	@Excel(name = "维修结果", width = 15)
    @ApiModelProperty(value = "维修结果")
    private String repairResult;
    /**维修状态*/
    @Excel(name = "维修状态", width = 15,dicCode = "repair_status")
    @ApiModelProperty(value = "维修状态")
    @Dict(dicCode = "repair_status")
    private String repairStatus;
    /**故障系统*/
    @Excel(name = "故障系统", width = 15,dicCode = "fault_system")
    @ApiModelProperty(value = "故障系统")
    @Dict(dicCode = "fault_system")
    private String faultSystem;
    /**是否关闭*/
    @Excel(name = "是否关闭", width = 15,dicCode = "yn")
    @ApiModelProperty(value = "是否关闭")
    @Dict(dicCode = "yn")
    private String isClose;
    /**维修部门名称*/
    @Excel(name = "维修部门名称", width = 15)
    @ApiModelProperty(value = "维修部门名称")
    private String orgName;
    /**故障时间*/
    @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 faultTime;
}
