package com.bailuntec.domain.entity;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class DcBaseFinanceInterest {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.id
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.borrow_id
     *
     * @mbg.generated
     */
    private Integer borrowId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.repay_id
     *
     * @mbg.generated
     */
    private Integer repayId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.contract_no
     *
     * @mbg.generated
     */
    private String contractNo;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.company_val
     *
     * @mbg.generated
     */
    private Integer companyVal;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.company
     *
     * @mbg.generated
     */
    private String company;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.bank_card
     *
     * @mbg.generated
     */
    private String bankCard;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.bank_card_user
     *
     * @mbg.generated
     */
    private String bankCardUser;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.bank_name
     *
     * @mbg.generated
     */
    private String bankName;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.creditor
     *
     * @mbg.generated
     */
    private String creditor;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.repay_interest
     *
     * @mbg.generated
     */
    private BigDecimal repayInterest;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.repay_interest_rmb
     *
     * @mbg.generated
     */
    private BigDecimal repayInterestRmb;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.actual_repay_time
     *
     * @mbg.generated
     */
    private LocalDateTime actualRepayTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.gmt_create
     *
     * @mbg.generated
     */
    private LocalDateTime gmtCreate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_interest.gmt_modify
     *
     * @mbg.generated
     */
    private LocalDateTime gmtModify;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_finance_interest
     *
     * @mbg.generated
     */
    @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(", borrowId=").append(borrowId);
        sb.append(", repayId=").append(repayId);
        sb.append(", contractNo=").append(contractNo);
        sb.append(", companyVal=").append(companyVal);
        sb.append(", company=").append(company);
        sb.append(", bankCard=").append(bankCard);
        sb.append(", bankCardUser=").append(bankCardUser);
        sb.append(", bankName=").append(bankName);
        sb.append(", creditor=").append(creditor);
        sb.append(", repayInterest=").append(repayInterest);
        sb.append(", repayInterestRmb=").append(repayInterestRmb);
        sb.append(", actualRepayTime=").append(actualRepayTime);
        sb.append(", gmtCreate=").append(gmtCreate);
        sb.append(", gmtModify=").append(gmtModify);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_finance_interest
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseFinanceInterest other = (DcBaseFinanceInterest) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getBorrowId() == null ? other.getBorrowId() == null : this.getBorrowId().equals(other.getBorrowId()))
            && (this.getRepayId() == null ? other.getRepayId() == null : this.getRepayId().equals(other.getRepayId()))
            && (this.getContractNo() == null ? other.getContractNo() == null : this.getContractNo().equals(other.getContractNo()))
            && (this.getCompanyVal() == null ? other.getCompanyVal() == null : this.getCompanyVal().equals(other.getCompanyVal()))
            && (this.getCompany() == null ? other.getCompany() == null : this.getCompany().equals(other.getCompany()))
            && (this.getBankCard() == null ? other.getBankCard() == null : this.getBankCard().equals(other.getBankCard()))
            && (this.getBankCardUser() == null ? other.getBankCardUser() == null : this.getBankCardUser().equals(other.getBankCardUser()))
            && (this.getBankName() == null ? other.getBankName() == null : this.getBankName().equals(other.getBankName()))
            && (this.getCreditor() == null ? other.getCreditor() == null : this.getCreditor().equals(other.getCreditor()))
            && (this.getRepayInterest() == null ? other.getRepayInterest() == null : this.getRepayInterest().equals(other.getRepayInterest()))
            && (this.getRepayInterestRmb() == null ? other.getRepayInterestRmb() == null : this.getRepayInterestRmb().equals(other.getRepayInterestRmb()))
            && (this.getActualRepayTime() == null ? other.getActualRepayTime() == null : this.getActualRepayTime().equals(other.getActualRepayTime()))
            && (this.getGmtCreate() == null ? other.getGmtCreate() == null : this.getGmtCreate().equals(other.getGmtCreate()))
            && (this.getGmtModify() == null ? other.getGmtModify() == null : this.getGmtModify().equals(other.getGmtModify()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_finance_interest
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getBorrowId() == null) ? 0 : getBorrowId().hashCode());
        result = prime * result + ((getRepayId() == null) ? 0 : getRepayId().hashCode());
        result = prime * result + ((getContractNo() == null) ? 0 : getContractNo().hashCode());
        result = prime * result + ((getCompanyVal() == null) ? 0 : getCompanyVal().hashCode());
        result = prime * result + ((getCompany() == null) ? 0 : getCompany().hashCode());
        result = prime * result + ((getBankCard() == null) ? 0 : getBankCard().hashCode());
        result = prime * result + ((getBankCardUser() == null) ? 0 : getBankCardUser().hashCode());
        result = prime * result + ((getBankName() == null) ? 0 : getBankName().hashCode());
        result = prime * result + ((getCreditor() == null) ? 0 : getCreditor().hashCode());
        result = prime * result + ((getRepayInterest() == null) ? 0 : getRepayInterest().hashCode());
        result = prime * result + ((getRepayInterestRmb() == null) ? 0 : getRepayInterestRmb().hashCode());
        result = prime * result + ((getActualRepayTime() == null) ? 0 : getActualRepayTime().hashCode());
        result = prime * result + ((getGmtCreate() == null) ? 0 : getGmtCreate().hashCode());
        result = prime * result + ((getGmtModify() == null) ? 0 : getGmtModify().hashCode());
        return result;
    }
}