package org.jeecg.modules.device.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
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.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 故障知识库
 * @Author: jeecg-boot
 * @Date:   2025-08-28
 * @Version: V1.0
 */
@Data
@TableName("bu_device_breakdown_dossier")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_device_breakdown_dossier对象", description="故障知识库")
public class DeviceBreakdownDossier implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    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;
    @ApiModelProperty(value = "故障编码")
    private String breakCode;
	/**设备类型*/
	@Excel(name = "设备类型", width = 15)
    @ApiModelProperty(value = "设备类型")
    @Dict(dictTable = "bu_device_type",dicText = "type_name",dicCode = "id")
    private String deviceTypeId;
	/**部件类型*/
	@Excel(name = "部件类型", width = 15)
    @ApiModelProperty(value = "部件类型")
    @Dict(dictTable = "bu_device_type",dicText = "type_name",dicCode = "id")
    private String departTypeId;
	/**故障类型*/
	@Excel(name = "故障类型", width = 15)
    @ApiModelProperty(value = "故障类型")
    @Dict(dicCode = "breakdown_type")
    private Integer breakdownType;
	/**故障表现与影响*/
	@Excel(name = "故障表现与影响", width = 15)
    @ApiModelProperty(value = "故障表现与影响")
    private String description;
	/**故障原因*/
	@Excel(name = "故障原因", width = 15)
    @ApiModelProperty(value = "故障原因")
    private String reason;
	/**解决方法*/
	@Excel(name = "解决方法", width = 15)
    @ApiModelProperty(value = "解决方法")
    private String solve;
	/**材料1*/
	@Excel(name = "材料1", width = 15)
    @ApiModelProperty(value = "材料1")
    private String instruction1;
	/**材料2*/
	@Excel(name = "材料2", width = 15)
    @ApiModelProperty(value = "材料2")
    private String instruction2;
	/**材料3*/
	@Excel(name = "材料3", width = 15)
    @ApiModelProperty(value = "材料3")
    private String instruction3;

    @TableField(exist = false)
    private String deviceId;
    @TableField(exist = false)
    private String departId;

    private Integer deleteFlag;
}
