package cn.ezhizao.project.business.processErrorStatistics.domain;

import java.util.Date;

import cn.ezhizao.framework.aspectj.lang.annotation.Excel;
import cn.ezhizao.framework.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import io.swagger.annotations.ApiModelProperty;


/**
 * 工艺文件制作错误次数统计对象 biz_process_documents_error_statistics
 *
 * @author ezhizao
 * @date 2024-08-02
 */
@Data
@TableName(value = "biz_process_documents_error_statistics")
public class BizProcessDocumentsErrorStatistics extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 租户（厂别）id */
    @ApiModelProperty(value = "${comment}")
    private Long tenantId;

    /** 交易代码 */
    @Excel(name = "交易代码")
    @ApiModelProperty(value = "交易代码")
    private String transactionCode;

    /** 生产计划单id */
    @ApiModelProperty(value = "交易代码")
    private Long productionPlanDetailId;

    /** 类型（0：内部；1：外部 */
    @Excel(name = "类型", readConverterExp = "类型（0：内部；1：外部")
    @ApiModelProperty(value = "类型")
    private String type;

    /** 客户简称 */
    @Excel(name = "客户简称")
    @ApiModelProperty(value = "客户简称")
    private String companyAlias;

    /** 产品规格 */
    @Excel(name = "产品规格")
    @ApiModelProperty(value = "产品规格")
    private String specification;

    /** 产品图号 */
    @Excel(name = "产品图号")
    @ApiModelProperty(value = "产品图号")
    private String drawingNumber;

    /** 工艺错误次数 */
    @Excel(name = "工艺错误次数")
    @ApiModelProperty(value = "工艺错误次数")
    private Long errorQuantity;

    /** 季度目标 */
    @Excel(name = "季度目标")
    @ApiModelProperty(value = "季度目标")
    private Integer quarterTarget;

    /** 投诉内容 */
    @Excel(name = "投诉内容")
    @ApiModelProperty(value = "投诉内容")
    private String complaintContent;

    /** 目标完成情况（0：达标；1；不达标） */
    @Excel(name = "目标完成情况", readConverterExp = "0=：达标；1；不达标")
    @ApiModelProperty(value = "目标完成情况")
    private Integer status;

    /** 年份 */
    @Excel(name = "年份")
    @ApiModelProperty(value = "年份")
    private Integer year;

    /** 季度 */
    @Excel(name = "季度")
    @ApiModelProperty(value = "季度")
    private Integer quarter;

    /** 日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "日期", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "日期")
    private Date date;
    @TableField(exist = false)
    private String startYear;
    @TableField(exist = false)
    private String endYear;

}
