package com.bailuntec.domain.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.cw_id
     *
     * @mbg.generated
     */
    @JSONField(name = "Id")
    private Integer cwId;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.data_type
     *
     * @mbg.generated
     */
    private Integer dataType;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.from_currency
     *
     * @mbg.generated
     */
    private Integer fromCurrency;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.exchange_money
     *
     * @mbg.generated
     */
    private BigDecimal exchangeMoney;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.to_currency
     *
     * @mbg.generated
     */
    private Integer toCurrency;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.service_charge
     *
     * @mbg.generated
     */
    private BigDecimal serviceCharge;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.daozhang_time
     *
     * @mbg.generated
     */
    private Date daozhangTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.daozhang_money
     *
     * @mbg.generated
     */
    private BigDecimal daozhangMoney;

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.createTime
     *
     * @mbg.generated
     */
    private Date createtime;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.update_time
     *
     * @mbg.generated
     */
    private Date updateTime;

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

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

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.collection_platform
     *
     * @mbg.generated
     */
    private Integer collectionPlatform;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.salesl_platform
     *
     * @mbg.generated
     */
    private Integer saleslPlatform;

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

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.other_to_cny_exchange_rate
     *
     * @mbg.generated
     */
    private BigDecimal otherToCnyExchangeRate;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.other_to_cny_money
     *
     * @mbg.generated
     */
    private BigDecimal otherToCnyMoney;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.gmt_create_time
     *
     * @mbg.generated
     */
    private Date gmtCreateTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column dc_base_finance_cashierdetail.gmt_modify_time
     *
     * @mbg.generated
     */
    private Date gmtModifyTime;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_finance_cashierdetail
     *
     * @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(", cwId=").append(cwId);
        sb.append(", dataType=").append(dataType);
        sb.append(", fromAccount=").append(fromAccount);
        sb.append(", fromCurrency=").append(fromCurrency);
        sb.append(", exchangeCurrency=").append(exchangeCurrency);
        sb.append(", exchangeMoney=").append(exchangeMoney);
        sb.append(", toAccount=").append(toAccount);
        sb.append(", toCurrency=").append(toCurrency);
        sb.append(", money=").append(money);
        sb.append(", serviceCharge=").append(serviceCharge);
        sb.append(", daozhangTime=").append(daozhangTime);
        sb.append(", daozhangMoney=").append(daozhangMoney);
        sb.append(", confirmName=").append(confirmName);
        sb.append(", status=").append(status);
        sb.append(", createName=").append(createName);
        sb.append(", createtime=").append(createtime);
        sb.append(", updateName=").append(updateName);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append(", fromCurrencyName=").append(fromCurrencyName);
        sb.append(", toCurrencyName=").append(toCurrencyName);
        sb.append(", collectionPlatform=").append(collectionPlatform);
        sb.append(", bank=").append(bank);
        sb.append(", saleslPlatform=").append(saleslPlatform);
        sb.append(", salesAccount=").append(salesAccount);
        sb.append(", otherToCnyExchangeRate=").append(otherToCnyExchangeRate);
        sb.append(", otherToCnyMoney=").append(otherToCnyMoney);
        sb.append(", gmtCreateTime=").append(gmtCreateTime);
        sb.append(", gmtModifyTime=").append(gmtModifyTime);
        sb.append("]");
        return sb.toString();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_finance_cashierdetail
     *
     * @mbg.generated
     */
    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DcBaseFinanceCashierdetail other = (DcBaseFinanceCashierdetail) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getCwId() == null ? other.getCwId() == null : this.getCwId().equals(other.getCwId()))
            && (this.getDataType() == null ? other.getDataType() == null : this.getDataType().equals(other.getDataType()))
            && (this.getFromAccount() == null ? other.getFromAccount() == null : this.getFromAccount().equals(other.getFromAccount()))
            && (this.getFromCurrency() == null ? other.getFromCurrency() == null : this.getFromCurrency().equals(other.getFromCurrency()))
            && (this.getExchangeCurrency() == null ? other.getExchangeCurrency() == null : this.getExchangeCurrency().equals(other.getExchangeCurrency()))
            && (this.getExchangeMoney() == null ? other.getExchangeMoney() == null : this.getExchangeMoney().equals(other.getExchangeMoney()))
            && (this.getToAccount() == null ? other.getToAccount() == null : this.getToAccount().equals(other.getToAccount()))
            && (this.getToCurrency() == null ? other.getToCurrency() == null : this.getToCurrency().equals(other.getToCurrency()))
            && (this.getMoney() == null ? other.getMoney() == null : this.getMoney().equals(other.getMoney()))
            && (this.getServiceCharge() == null ? other.getServiceCharge() == null : this.getServiceCharge().equals(other.getServiceCharge()))
            && (this.getDaozhangTime() == null ? other.getDaozhangTime() == null : this.getDaozhangTime().equals(other.getDaozhangTime()))
            && (this.getDaozhangMoney() == null ? other.getDaozhangMoney() == null : this.getDaozhangMoney().equals(other.getDaozhangMoney()))
            && (this.getConfirmName() == null ? other.getConfirmName() == null : this.getConfirmName().equals(other.getConfirmName()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateName() == null ? other.getCreateName() == null : this.getCreateName().equals(other.getCreateName()))
            && (this.getCreatetime() == null ? other.getCreatetime() == null : this.getCreatetime().equals(other.getCreatetime()))
            && (this.getUpdateName() == null ? other.getUpdateName() == null : this.getUpdateName().equals(other.getUpdateName()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getFromCurrencyName() == null ? other.getFromCurrencyName() == null : this.getFromCurrencyName().equals(other.getFromCurrencyName()))
            && (this.getToCurrencyName() == null ? other.getToCurrencyName() == null : this.getToCurrencyName().equals(other.getToCurrencyName()))
            && (this.getCollectionPlatform() == null ? other.getCollectionPlatform() == null : this.getCollectionPlatform().equals(other.getCollectionPlatform()))
            && (this.getBank() == null ? other.getBank() == null : this.getBank().equals(other.getBank()))
            && (this.getSaleslPlatform() == null ? other.getSaleslPlatform() == null : this.getSaleslPlatform().equals(other.getSaleslPlatform()))
            && (this.getSalesAccount() == null ? other.getSalesAccount() == null : this.getSalesAccount().equals(other.getSalesAccount()))
            && (this.getOtherToCnyExchangeRate() == null ? other.getOtherToCnyExchangeRate() == null : this.getOtherToCnyExchangeRate().equals(other.getOtherToCnyExchangeRate()))
            && (this.getOtherToCnyMoney() == null ? other.getOtherToCnyMoney() == null : this.getOtherToCnyMoney().equals(other.getOtherToCnyMoney()))
            && (this.getGmtCreateTime() == null ? other.getGmtCreateTime() == null : this.getGmtCreateTime().equals(other.getGmtCreateTime()))
            && (this.getGmtModifyTime() == null ? other.getGmtModifyTime() == null : this.getGmtModifyTime().equals(other.getGmtModifyTime()));
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table dc_base_finance_cashierdetail
     *
     * @mbg.generated
     */
    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getCwId() == null) ? 0 : getCwId().hashCode());
        result = prime * result + ((getDataType() == null) ? 0 : getDataType().hashCode());
        result = prime * result + ((getFromAccount() == null) ? 0 : getFromAccount().hashCode());
        result = prime * result + ((getFromCurrency() == null) ? 0 : getFromCurrency().hashCode());
        result = prime * result + ((getExchangeCurrency() == null) ? 0 : getExchangeCurrency().hashCode());
        result = prime * result + ((getExchangeMoney() == null) ? 0 : getExchangeMoney().hashCode());
        result = prime * result + ((getToAccount() == null) ? 0 : getToAccount().hashCode());
        result = prime * result + ((getToCurrency() == null) ? 0 : getToCurrency().hashCode());
        result = prime * result + ((getMoney() == null) ? 0 : getMoney().hashCode());
        result = prime * result + ((getServiceCharge() == null) ? 0 : getServiceCharge().hashCode());
        result = prime * result + ((getDaozhangTime() == null) ? 0 : getDaozhangTime().hashCode());
        result = prime * result + ((getDaozhangMoney() == null) ? 0 : getDaozhangMoney().hashCode());
        result = prime * result + ((getConfirmName() == null) ? 0 : getConfirmName().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateName() == null) ? 0 : getCreateName().hashCode());
        result = prime * result + ((getCreatetime() == null) ? 0 : getCreatetime().hashCode());
        result = prime * result + ((getUpdateName() == null) ? 0 : getUpdateName().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getFromCurrencyName() == null) ? 0 : getFromCurrencyName().hashCode());
        result = prime * result + ((getToCurrencyName() == null) ? 0 : getToCurrencyName().hashCode());
        result = prime * result + ((getCollectionPlatform() == null) ? 0 : getCollectionPlatform().hashCode());
        result = prime * result + ((getBank() == null) ? 0 : getBank().hashCode());
        result = prime * result + ((getSaleslPlatform() == null) ? 0 : getSaleslPlatform().hashCode());
        result = prime * result + ((getSalesAccount() == null) ? 0 : getSalesAccount().hashCode());
        result = prime * result + ((getOtherToCnyExchangeRate() == null) ? 0 : getOtherToCnyExchangeRate().hashCode());
        result = prime * result + ((getOtherToCnyMoney() == null) ? 0 : getOtherToCnyMoney().hashCode());
        result = prime * result + ((getGmtCreateTime() == null) ? 0 : getGmtCreateTime().hashCode());
        result = prime * result + ((getGmtModifyTime() == null) ? 0 : getGmtModifyTime().hashCode());
        return result;
    }
}