package org.jeecg.modules.statistics.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:   2021-01-18
 * @Version: V1.0
 */
@Data
@TableName("bu_fault_statistics")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="bu_fault_statistics对象", description="设备信息统计表")
public class BuFaultStatistics 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 = "设备名称")
    @Dict(dictTable = "bu_device",dicText = "device_name",dicCode = "id")
    private String deviceId;
    /**故障次数*/
    @Excel(name = "故障次数", width = 15)
    @ApiModelProperty(value = "故障次数")
    private String faultCategory;
    /**月份*/
    @Excel(name = "月份", width = 15)
    @ApiModelProperty(value = "月份")
    private String month;
    /**年份*/
    @Excel(name = "年份", width = 15)
    @ApiModelProperty(value = "年份")
    private String year;
    /**故障系统*/
    @Excel(name = "故障系统", width = 15)
    @ApiModelProperty(value = "故障系统")
    @Dict(dicCode = "fault_system")
    private String faultSystem;
    /**故障类型*/
    @Excel(name = "故障类型", width = 15)
    @ApiModelProperty(value = "故障类型")
    @Dict(dicCode = "repair_type")
    private String repairType;
    /**故障等级*/
    @Excel(name = "故障等级", width = 15)
    @ApiModelProperty(value = "故障等级")
    @Dict(dicCode = "repair_grade")
    private String repairGrade;
    /**故障系统次数*/
    @Excel(name = "故障系统次数", width = 15)
    @ApiModelProperty(value = "故障系统次数")
    private String faultSystemTime;
    /**故障类型次数*/
    @Excel(name = "故障类型次数", width = 15)
    @ApiModelProperty(value = "故障类型次数")
    private String repairTypeTime;
    /**故障等级次数*/
    @Excel(name = "故障等级次数", width = 15)
    @ApiModelProperty(value = "故障等级次数")
    private String repairGradeTime;
    /**一月*/
    @Excel(name = "一月", width = 15)
    @ApiModelProperty(value = "一月")
    private String jan;
    /**二月*/
    @Excel(name = "二月", width = 15)
    @ApiModelProperty(value = "二月")
    private String feb;
    /**三月*/
    @Excel(name = "三月", width = 15)
    @ApiModelProperty(value = "三月")
    private String mar;
    /**四月*/
    @Excel(name = "四月", width = 15)
    @ApiModelProperty(value = "四月")
    private String apr;
    /**五月*/
    @Excel(name = "五月", width = 15)
    @ApiModelProperty(value = "五月")
    private String may;
    /**六月*/
    @Excel(name = "六月", width = 15)
    @ApiModelProperty(value = "六月")
    private String jun;
    /**七月*/
    @Excel(name = "七月", width = 15)
    @ApiModelProperty(value = "七月")
    private String jul;
    /**八月*/
    @Excel(name = "八月", width = 15)
    @ApiModelProperty(value = "八月")
    private String aug;
    /**九月*/
    @Excel(name = "九月", width = 15)
    @ApiModelProperty(value = "九月")
    private String sep;
    /**十月*/
    @Excel(name = "十月", width = 15)
    @ApiModelProperty(value = "十月")
    private String octo;
    /**十一月*/
    @Excel(name = "十一月", width = 15)
    @ApiModelProperty(value = "十一月")
    private String nov;
    /**十二月*/
    @Excel(name = "十二月", width = 15)
    @ApiModelProperty(value = "十二月")
    private String dece;
}
