package com.ankaibei.workFlow.webadmin.ankaibei.entity;

import javax.persistence.*;
import java.util.Date;
import java.util.Objects;

/**
 * @author
 * @version 1.0
 * @description: 项目审核表
 * @date 2022/10/8 17:42
 */
@Entity
@Table(name = "project_audit_info", schema = "ankaibei", catalog = "")
public class ProjectAuditInfoEntity {
    private Integer projectAuditId;
    private String projectName;
    private String printcipal;
    private Date createDate;
    private String auditStatus;
    private Integer projectId;
    /**
     * 审批类型
     */
    private String approveType;
    /**
     * 当前事项
     */
    private String matter;

    @Id
    @Column(name = "project_audit_id")
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    public Integer getProjectAuditId() {
        return projectAuditId;
    }

    public void setProjectAuditId(Integer projectAuditId) {
        this.projectAuditId = projectAuditId;
    }

    @Basic
    @Column(name = "approve_type")
    public String getApproveType() {
        return approveType;
    }

    public void setApproveType(String approveType) {
        this.approveType = approveType;
    }

    @Basic
    @Column(name = "matter")
    public String getMatter() {
        return matter;
    }

    public void setMatter(String matter) {
        this.matter = matter;
    }

    @Basic
    @Column(name = "project_name")
    public String getProjectName() {
        return projectName;
    }

    public void setProjectName(String projectName) {
        this.projectName = projectName;
    }

    @Basic
    @Column(name = "printcipal")
    public String getPrintcipal() {
        return printcipal;
    }

    public void setPrintcipal(String printcipal) {
        this.printcipal = printcipal;
    }

    @Basic
    @Column(name = "create_date")
    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    @Basic
    @Column(name = "audit_status")
    public String getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(String auditStatus) {
        this.auditStatus = auditStatus;
    }

    @Basic
    @Column(name = "project_id")
    public Integer getProjectId() {
        return projectId;
    }

    public void setProjectId(Integer projectId) {
        this.projectId = projectId;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ProjectAuditInfoEntity that = (ProjectAuditInfoEntity) o;
        return projectAuditId == that.projectAuditId && Objects.equals(projectName, that.projectName) && Objects.equals(printcipal, that.printcipal) && Objects.equals(createDate, that.createDate) && Objects.equals(auditStatus, that.auditStatus) && Objects.equals(projectId, that.projectId);
    }

    @Override
    public int hashCode() {
        return Objects.hash(projectAuditId, projectName, printcipal, createDate, auditStatus, projectId);
    }
}
