package com.zhentao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 红娘上传成功案例表
 * @TableName matchmaker_success_case_upload
 */
@TableName(value ="matchmaker_success_case_upload")
@Data
public class MatchmakerSuccessCaseUpload {
    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 撮合红娘ID
     */
    private Integer matchmakerId;

    /**
     * 男方用户ID
     */
    private Integer maleUserId;

    /**
     * 女方用户ID
     */
    private Integer femaleUserId;

    /**
     * 男方真实姓名
     */
    private String maleRealName;

    /**
     * 女方真实姓名
     */
    private String femaleRealName;

    /**
     * 成功凭证图片路径（JSON数组格式）
     */
    private String proofImages;

    /**
     * 案例类型: 1-订婚 2-领证结婚
     */
    private Integer caseType;

    /**
     * 成功日期（结婚日期/确定关系日期）
     */
    private Date caseDate;

    /**
     * 审核状态：0-待审核 1-审核通过 2-审核失败 3-核实中
     */
    private Integer auditStatus;

    /**
     * 审核备注（失败原因）
     */
    private String auditRemark;

    /**
     * 审核人ID（管理员）
     */
    private Integer auditorId;

    /**
     * 积分奖励
     */
    private Integer pointsReward;

    /**
     * 现金奖励
     */
    private BigDecimal cashReward;

    /**
     * 奖励状态：0-未发放 1-已发放
     */
    private Integer rewardStatus;

    /**
     * 是否发布到成功案例展示：0-否 1-是
     */
    private Integer isPublished;

    /**
     * 关联的成功案例ID
     */
    private Integer publishedCaseId;

    /**
     * 0未读         1已读
     */
    private Integer isRead;

    /**
     * 上传时间
     */
    private Date createdAt;

    /**
     * 更新时间
     */
    private Date updatedAt;

    /**
     * 审核时间
     */
    private Date auditedAt;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        MatchmakerSuccessCaseUpload other = (MatchmakerSuccessCaseUpload) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getMatchmakerId() == null ? other.getMatchmakerId() == null : this.getMatchmakerId().equals(other.getMatchmakerId()))
            && (this.getMaleUserId() == null ? other.getMaleUserId() == null : this.getMaleUserId().equals(other.getMaleUserId()))
            && (this.getFemaleUserId() == null ? other.getFemaleUserId() == null : this.getFemaleUserId().equals(other.getFemaleUserId()))
            && (this.getMaleRealName() == null ? other.getMaleRealName() == null : this.getMaleRealName().equals(other.getMaleRealName()))
            && (this.getFemaleRealName() == null ? other.getFemaleRealName() == null : this.getFemaleRealName().equals(other.getFemaleRealName()))
            && (this.getProofImages() == null ? other.getProofImages() == null : this.getProofImages().equals(other.getProofImages()))
            && (this.getCaseType() == null ? other.getCaseType() == null : this.getCaseType().equals(other.getCaseType()))
            && (this.getCaseDate() == null ? other.getCaseDate() == null : this.getCaseDate().equals(other.getCaseDate()))
            && (this.getAuditStatus() == null ? other.getAuditStatus() == null : this.getAuditStatus().equals(other.getAuditStatus()))
            && (this.getAuditRemark() == null ? other.getAuditRemark() == null : this.getAuditRemark().equals(other.getAuditRemark()))
            && (this.getAuditorId() == null ? other.getAuditorId() == null : this.getAuditorId().equals(other.getAuditorId()))
            && (this.getPointsReward() == null ? other.getPointsReward() == null : this.getPointsReward().equals(other.getPointsReward()))
            && (this.getCashReward() == null ? other.getCashReward() == null : this.getCashReward().equals(other.getCashReward()))
            && (this.getRewardStatus() == null ? other.getRewardStatus() == null : this.getRewardStatus().equals(other.getRewardStatus()))
            && (this.getIsPublished() == null ? other.getIsPublished() == null : this.getIsPublished().equals(other.getIsPublished()))
            && (this.getPublishedCaseId() == null ? other.getPublishedCaseId() == null : this.getPublishedCaseId().equals(other.getPublishedCaseId()))
            && (this.getIsRead() == null ? other.getIsRead() == null : this.getIsRead().equals(other.getIsRead()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()))
            && (this.getUpdatedAt() == null ? other.getUpdatedAt() == null : this.getUpdatedAt().equals(other.getUpdatedAt()))
            && (this.getAuditedAt() == null ? other.getAuditedAt() == null : this.getAuditedAt().equals(other.getAuditedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getMatchmakerId() == null) ? 0 : getMatchmakerId().hashCode());
        result = prime * result + ((getMaleUserId() == null) ? 0 : getMaleUserId().hashCode());
        result = prime * result + ((getFemaleUserId() == null) ? 0 : getFemaleUserId().hashCode());
        result = prime * result + ((getMaleRealName() == null) ? 0 : getMaleRealName().hashCode());
        result = prime * result + ((getFemaleRealName() == null) ? 0 : getFemaleRealName().hashCode());
        result = prime * result + ((getProofImages() == null) ? 0 : getProofImages().hashCode());
        result = prime * result + ((getCaseType() == null) ? 0 : getCaseType().hashCode());
        result = prime * result + ((getCaseDate() == null) ? 0 : getCaseDate().hashCode());
        result = prime * result + ((getAuditStatus() == null) ? 0 : getAuditStatus().hashCode());
        result = prime * result + ((getAuditRemark() == null) ? 0 : getAuditRemark().hashCode());
        result = prime * result + ((getAuditorId() == null) ? 0 : getAuditorId().hashCode());
        result = prime * result + ((getPointsReward() == null) ? 0 : getPointsReward().hashCode());
        result = prime * result + ((getCashReward() == null) ? 0 : getCashReward().hashCode());
        result = prime * result + ((getRewardStatus() == null) ? 0 : getRewardStatus().hashCode());
        result = prime * result + ((getIsPublished() == null) ? 0 : getIsPublished().hashCode());
        result = prime * result + ((getPublishedCaseId() == null) ? 0 : getPublishedCaseId().hashCode());
        result = prime * result + ((getIsRead() == null) ? 0 : getIsRead().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        result = prime * result + ((getUpdatedAt() == null) ? 0 : getUpdatedAt().hashCode());
        result = prime * result + ((getAuditedAt() == null) ? 0 : getAuditedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", matchmakerId=").append(matchmakerId);
        sb.append(", maleUserId=").append(maleUserId);
        sb.append(", femaleUserId=").append(femaleUserId);
        sb.append(", maleRealName=").append(maleRealName);
        sb.append(", femaleRealName=").append(femaleRealName);
        sb.append(", proofImages=").append(proofImages);
        sb.append(", caseType=").append(caseType);
        sb.append(", caseDate=").append(caseDate);
        sb.append(", auditStatus=").append(auditStatus);
        sb.append(", auditRemark=").append(auditRemark);
        sb.append(", auditorId=").append(auditorId);
        sb.append(", pointsReward=").append(pointsReward);
        sb.append(", cashReward=").append(cashReward);
        sb.append(", rewardStatus=").append(rewardStatus);
        sb.append(", isPublished=").append(isPublished);
        sb.append(", publishedCaseId=").append(publishedCaseId);
        sb.append(", isRead=").append(isRead);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", updatedAt=").append(updatedAt);
        sb.append(", auditedAt=").append(auditedAt);
        sb.append("]");
        return sb.toString();
    }
}