package com.test.test.domain;

import com.test.common.annotation.Excel;
import com.test.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 测试缺陷对象 test_defect
 *
 * @author test
 * @date 2025-04-22
 */
public class TestDefect extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 测试缺陷编码 */
    @Excel(name = "缺陷ID")
    private String serialNumber;

    /** 测试缺陷名称 */
//    @Excel(name = "测试缺陷名称")
    private String name;

    /** 缺陷概要 */
    @Excel(name = "缺陷概要")
    private String outline;

    /** 缺陷描述 */
//    @Excel(name = "缺陷描述")
    private String detail;

    /** 状态(0,待确认,1,修复中,2,已完成,3,无效缺陷,4,挂起,5,待验证) */
    @Excel(name = "状态")
    private String status;

    /** 经办人 */
    @Excel(name = "经办人")
    private String manager;

    /** 开发人员 */
//    @Excel(name = "开发人员")
    private String dev;

    /** 严重程度（0,无效,1,轻微,2,一般,3,严重,4,致命） */
    @Excel(name = "严重程度")
    private String level;

    /** 缺陷类型（0,功能逻辑,1,UI交互,2,性能问题,3,兼容性问题,4,配置错误,5,安全问题,6,安装部署,7,其他） */
//    @Excel(name = "缺陷类型", readConverterExp = "0=,功能逻辑,1,UI交互,2,性能问题,3,兼容性问题,4,配置错误,5,安全问题,6,安装部署,7,其他")
    private String type;

    /** 是否复现（0,必然复现,1,偶发复现） */
//    @Excel(name = "是否复现", readConverterExp = "0=,必然复现,1,偶发复现")
    private String reappearance;

    /** 测试人员 */
//    @Excel(name = "测试人员")
    private String test;

    /** 是否开启邮件通知（0,不开启,1,开启） */
//    @Excel(name = "是否开启邮件通知", readConverterExp = "0=,不开启,1,开启")
    private String mail = "0";

    /** 版本 */
//    @Excel(name = "版本")
    private String version;

    /** 0,正常,1,删除 */
    private String delFlag;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSerialNumber(String serialNumber)
    {
        this.serialNumber = serialNumber;
    }

    public String getSerialNumber()
    {
        return serialNumber;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setOutline(String outline)
    {
        this.outline = outline;
    }

    public String getOutline()
    {
        return outline;
    }
    public void setDetail(String detail)
    {
        this.detail = detail;
    }

    public String getDetail()
    {
        return detail;
    }
    public void setStatus(String status)
    {
        this.status = status;
    }

    public String getStatus()
    {
        return status;
    }
    public void setManager(String manager)
    {
        this.manager = manager;
    }

    public String getManager()
    {
        return manager;
    }
    public void setDev(String dev)
    {
        this.dev = dev;
    }

    public String getDev()
    {
        return dev;
    }
    public void setLevel(String level)
    {
        this.level = level;
    }

    public String getLevel()
    {
        return level;
    }
    public void setType(String type)
    {
        this.type = type;
    }

    public String getType()
    {
        return type;
    }
    public void setReappearance(String reappearance)
    {
        this.reappearance = reappearance;
    }

    public String getReappearance()
    {
        return reappearance;
    }
    public void setTest(String test)
    {
        this.test = test;
    }

    public String getTest()
    {
        return test;
    }
    public void setMail(String mail)
    {
        this.mail = mail;
    }

    public String getMail()
    {
        return mail;
    }
    public void setVersion(String version)
    {
        this.version = version;
    }

    public String getVersion()
    {
        return version;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serialNumber", getSerialNumber())
            .append("name", getName())
            .append("outline", getOutline())
            .append("detail", getDetail())
            .append("status", getStatus())
            .append("manager", getManager())
            .append("dev", getDev())
            .append("level", getLevel())
            .append("type", getType())
            .append("reappearance", getReappearance())
            .append("test", getTest())
            .append("mail", getMail())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
