package com.ssm.manage.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import javax.persistence.*;

@Table(name = "card_change_list")
public class CardChangeList implements Serializable {
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Getter
    @Setter
    @Transient
    private Date startTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Getter@Setter
    @Transient
    private Date endTime;
    /**
     * 主键ID
     */
    @Id
    private Long id;

    /**
     * 单据号
     */
    @Column(name = "doc_num")
    private String docNum;

    /**
     * 单据时间
     */
    @Column(name = "doc_date")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date docDate;

    /**
     * 门店编码
     */
    @Column(name = "store_id")
    private Long storeId;

    /**
     * 门店名称
     */
    @Column(name = "store_name")
    private String storeName;

    /**
     * 会员编码
     */
    @Column(name = "member_id")
    private Long memberId;

    /**
     * 会员名称
     */
    @Column(name = "member_name")
    private String memberName;

    /**
     * 会员身份证号
     */
    @Column(name = "member_identity_card")
    private String memberIdentityCard;

    /**
     * 手机
     */
    @Column(name = "mobile_phone")
    private String mobilePhone;

    /**
     * 录单人ID
     */
    @Column(name = "input_id")
    private Long inputId;

    /**
     * 录单人名称
     */
    @Column(name = "input_by")
    private String inputBy;

    /**
     * 欠款金额
     */
    @Column(name = "debt_money")
    private BigDecimal debtMoney;

    /**
     * 转入支付金额
     */
    @Column(name = "change_in_pay_money")
    private BigDecimal changeInPayMoney;

    /**
     * 转入金额
     */
    @Column(name = "change_in_money")
    private BigDecimal changeInMoney;

    /**
     * 转出金额
     */
    @Column(name = "change_out_money")
    private BigDecimal changeOutMoney;

    /**
     * 差异金额
     */
    @Column(name = "difference_money")
    private BigDecimal differenceMoney;

    /**
     * 补单时间
     */
    @Column(name = "addition_date")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date additionDate;

    /**
     * 是否补单0:不是/1:是
     */
    @Column(name = "is_addition")
    private Integer isAddition;

    /**
     * 是否作废 1:作废/0:未作废
     */
    @Column(name = "is_cancel")
    private Integer isCancel;

    /**
     * 是否欠款 1:欠款/0:未欠款
     */
    @Column(name = "is_debt")
    private Integer isDebt;

    /**
     * 作废时间
     */
    @Column(name = "cancel_date")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date cancelDate;

    /**
     * 作废人ID
     */
    @Column(name = "cancel_id")
    private Long cancelId;

    /**
     * 作废人名称
     */
    @Column(name = "cancel_by")
    private String cancelBy;

    /**
     * 内调单审核时间
     */
    @Column(name = "audit_date")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date auditDate;

    /**
     * 内调单审核人ID
     */
    @Column(name = "audit_id")
    private Long auditId;

    /**
     * 内调单审核人名称
     */
    @Column(name = "audit_by")
    private String auditBy;

    /**
     * 状态 0:添加/1:送审/2:回收/3:审核/4:反审核
     */
    private Integer state;

    /**
     * 描述
     */
    private String description;

    /**
     * 描述
     */
    @Transient
    private List<Salesman> salesmens;

    public List<Salesman> getSalesmens() {
        return salesmens;
    }

    public void setSalesmens(List<Salesman> salesmens) {
        this.salesmens = salesmens;
    }

    private static final long serialVersionUID = 1L;

    /**
     * 销售员1水牌号
     */
    @Column(name = "sale_one_number")
    private String saleOneNumber;

    /**
     * 销售员2水牌号
     */
    @Column(name = "sale_two_number")
    private String saleTwoNumber;

    /**
     * 销售员3水牌号
     */
    @Column(name = "sale_three_number")
    private String saleThreeNumber;

    /**
     * 销售员4水牌号
     */
    @Column(name = "sale_four_number")
    private String saleFourNumber;

    /**
     * 销售员1编码
     */
    @Column(name = "sale_one_staff_id")
    private Long saleOneStaffId;

    /**
     * 销售员2编码
     */
    @Column(name = "sale_two_staff_id")
    private Long saleTwoStaffId;

    /**
     * 销售员3编码
     */
    @Column(name = "sale_three_staff_id")
    private Long saleThreeStaffId;

    /**
     * 销售员4编码
     */
    @Column(name = "sale_four_staff_id")
    private Long saleFourStaffId;

    /**
     * 销售员1名称
     */
    @Column(name = "sale_one_staff_name")
    private String saleOneStaffName;

    /**
     * 销售员2名称
     */
    @Column(name = "sale_two_staff_name")
    private String saleTwoStaffName;

    /**
     * 销售员3名称
     */
    @Column(name = "sale_three_staff_name")
    private String saleThreeStaffName;

    /**
     * 销售员4名称
     */
    @Column(name = "sale_four_staff_name")
    private String saleFourStaffName;

    /**
     * 销售员1身份证号
     */
    @Column(name = "sale_one_identity")
    private String saleOneIdentity;

    /**
     * 销售员2身份证号
     */
    @Column(name = "sale_two_identity")
    private String saleTwoIdentity;

    /**
     * 销售员3身份证号
     */
    @Column(name = "sale_three_identity")
    private String saleThreeIdentity;

    /**
     * 销售员4身份证号
     */
    @Column(name = "sale_four_identity")
    private String saleFourIdentity;

    /**
     * 销售员1占比
     */
    @Column(name = "sale_one_ratio")
    private BigDecimal saleOneRatio;

    /**
     * 销售员2占比
     */
    @Column(name = "sale_two_ratio")
    private BigDecimal saleTwoRatio;

    /**
     * 销售员3占比
     */
    @Column(name = "sale_three_ratio")
    private BigDecimal saleThreeRatio;

    /**
     * 销售员4占比
     */
    @Column(name = "sale_four_ratio")
    private BigDecimal saleFourRatio;

    /**
     * 获取主键ID
     *
     * @return id - 主键ID
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置主键ID
     *
     * @param id 主键ID
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取单据号
     *
     * @return doc_num - 单据号
     */
    public String getDocNum() {
        return docNum;
    }

    /**
     * 设置单据号
     *
     * @param docNum 单据号
     */
    public void setDocNum(String docNum) {
        this.docNum = docNum;
    }

    /**
     * 获取单据时间
     *
     * @return doc_date - 单据时间
     */
    public Date getDocDate() {
        return docDate;
    }

    /**
     * 设置单据时间
     *
     * @param docDate 单据时间
     */
    public void setDocDate(Date docDate) {
        this.docDate = docDate;
    }

    /**
     * 获取门店编码
     *
     * @return store_id - 门店编码
     */
    public Long getStoreId() {
        return storeId;
    }

    /**
     * 设置门店编码
     *
     * @param storeId 门店编码
     */
    public void setStoreId(Long storeId) {
        this.storeId = storeId;
    }

    /**
     * 获取门店名称
     *
     * @return store_name - 门店名称
     */
    public String getStoreName() {
        return storeName;
    }

    /**
     * 设置门店名称
     *
     * @param storeName 门店名称
     */
    public void setStoreName(String storeName) {
        this.storeName = storeName;
    }

    /**
     * 获取会员编码
     *
     * @return member_id - 会员编码
     */
    public Long getMemberId() {
        return memberId;
    }

    /**
     * 设置会员编码
     *
     * @param memberId 会员编码
     */
    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    /**
     * 获取会员名称
     *
     * @return member_name - 会员名称
     */
    public String getMemberName() {
        return memberName;
    }

    /**
     * 设置会员名称
     *
     * @param memberName 会员名称
     */
    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    /**
     * 获取会员身份证号
     *
     * @return member_identity_card - 会员身份证号
     */
    public String getMemberIdentityCard() {
        return memberIdentityCard;
    }

    /**
     * 设置会员身份证号
     *
     * @param memberIdentityCard 会员身份证号
     */
    public void setMemberIdentityCard(String memberIdentityCard) {
        this.memberIdentityCard = memberIdentityCard;
    }

    /**
     * 获取手机
     *
     * @return mobile_phone - 手机
     */
    public String getMobilePhone() {
        return mobilePhone;
    }

    /**
     * 设置手机
     *
     * @param mobilePhone 手机
     */
    public void setMobilePhone(String mobilePhone) {
        this.mobilePhone = mobilePhone;
    }

    /**
     * 获取录单人ID
     *
     * @return input_id - 录单人ID
     */
    public Long getInputId() {
        return inputId;
    }

    /**
     * 设置录单人ID
     *
     * @param inputId 录单人ID
     */
    public void setInputId(Long inputId) {
        this.inputId = inputId;
    }

    /**
     * 获取录单人名称
     *
     * @return input_by - 录单人名称
     */
    public String getInputBy() {
        return inputBy;
    }

    /**
     * 设置录单人名称
     *
     * @param inputBy 录单人名称
     */
    public void setInputBy(String inputBy) {
        this.inputBy = inputBy;
    }

    /**
     * 获取欠款金额
     *
     * @return debt_money - 欠款金额
     */
    public BigDecimal getDebtMoney() {
        return debtMoney;
    }

    /**
     * 设置欠款金额
     *
     * @param debtMoney 欠款金额
     */
    public void setDebtMoney(BigDecimal debtMoney) {
        this.debtMoney = debtMoney;
    }

    /**
     * 获取转入支付金额
     *
     * @return change_in_pay_money - 转入支付金额
     */
    public BigDecimal getChangeInPayMoney() {
        return changeInPayMoney;
    }

    /**
     * 设置转入支付金额
     *
     * @param changeInPayMoney 转入支付金额
     */
    public void setChangeInPayMoney(BigDecimal changeInPayMoney) {
        this.changeInPayMoney = changeInPayMoney;
    }

    /**
     * 获取转入金额
     *
     * @return change_in_money - 转入金额
     */
    public BigDecimal getChangeInMoney() {
        return changeInMoney;
    }

    /**
     * 设置转入金额
     *
     * @param changeInMoney 转入金额
     */
    public void setChangeInMoney(BigDecimal changeInMoney) {
        this.changeInMoney = changeInMoney;
    }

    /**
     * 获取转出金额
     *
     * @return change_out_money - 转出金额
     */
    public BigDecimal getChangeOutMoney() {
        return changeOutMoney;
    }

    /**
     * 设置转出金额
     *
     * @param changeOutMoney 转出金额
     */
    public void setChangeOutMoney(BigDecimal changeOutMoney) {
        this.changeOutMoney = changeOutMoney;
    }

    /**
     * 获取差异金额
     *
     * @return difference_money - 差异金额
     */
    public BigDecimal getDifferenceMoney() {
        return differenceMoney;
    }

    /**
     * 设置差异金额
     *
     * @param differenceMoney 差异金额
     */
    public void setDifferenceMoney(BigDecimal differenceMoney) {
        this.differenceMoney = differenceMoney;
    }

    /**
     * 获取补单时间
     *
     * @return addition_date - 补单时间
     */
    public Date getAdditionDate() {
        return additionDate;
    }

    /**
     * 设置补单时间
     *
     * @param additionDate 补单时间
     */
    public void setAdditionDate(Date additionDate) {
        this.additionDate = additionDate;
    }

    /**
     * 获取是否补单0:不是/1:是
     *
     * @return is_addition - 是否补单0:不是/1:是
     */
    public Integer getIsAddition() {
        return isAddition;
    }

    /**
     * 设置是否补单0:不是/1:是
     *
     * @param isAddition 是否补单0:不是/1:是
     */
    public void setIsAddition(Integer isAddition) {
        this.isAddition = isAddition;
    }

    /**
     * 获取是否作废 1:作废/0:未作废
     *
     * @return is_cancel - 是否作废 1:作废/0:未作废
     */
    public Integer getIsCancel() {
        return isCancel;
    }

    /**
     * 设置是否作废 1:作废/0:未作废
     *
     * @param isCancel 是否作废 1:作废/0:未作废
     */
    public void setIsCancel(Integer isCancel) {
        this.isCancel = isCancel;
    }

    /**
     * 获取是否欠款 1:欠款/0:未欠款
     *
     * @return is_debt - 是否欠款 1:欠款/0:未欠款
     */
    public Integer getIsDebt() {
        return isDebt;
    }

    /**
     * 设置是否欠款 1:欠款/0:未欠款
     *
     * @param isDebt 是否欠款 1:欠款/0:未欠款
     */
    public void setIsDebt(Integer isDebt) {
        this.isDebt = isDebt;
    }

    /**
     * 获取作废时间
     *
     * @return cancel_date - 作废时间
     */
    public Date getCancelDate() {
        return cancelDate;
    }

    /**
     * 设置作废时间
     *
     * @param cancelDate 作废时间
     */
    public void setCancelDate(Date cancelDate) {
        this.cancelDate = cancelDate;
    }

    /**
     * 获取作废人ID
     *
     * @return cancel_id - 作废人ID
     */
    public Long getCancelId() {
        return cancelId;
    }

    /**
     * 设置作废人ID
     *
     * @param cancelId 作废人ID
     */
    public void setCancelId(Long cancelId) {
        this.cancelId = cancelId;
    }

    /**
     * 获取作废人名称
     *
     * @return cancel_by - 作废人名称
     */
    public String getCancelBy() {
        return cancelBy;
    }

    /**
     * 设置作废人名称
     *
     * @param cancelBy 作废人名称
     */
    public void setCancelBy(String cancelBy) {
        this.cancelBy = cancelBy;
    }

    /**
     * 获取内调单审核时间
     *
     * @return audit_date - 内调单审核时间
     */
    public Date getAuditDate() {
        return auditDate;
    }

    /**
     * 设置内调单审核时间
     *
     * @param auditDate 内调单审核时间
     */
    public void setAuditDate(Date auditDate) {
        this.auditDate = auditDate;
    }

    /**
     * 获取内调单审核人ID
     *
     * @return audit_id - 内调单审核人ID
     */
    public Long getAuditId() {
        return auditId;
    }

    /**
     * 设置内调单审核人ID
     *
     * @param auditId 内调单审核人ID
     */
    public void setAuditId(Long auditId) {
        this.auditId = auditId;
    }

    /**
     * 获取内调单审核人名称
     *
     * @return audit_by - 内调单审核人名称
     */
    public String getAuditBy() {
        return auditBy;
    }

    /**
     * 设置内调单审核人名称
     *
     * @param auditBy 内调单审核人名称
     */
    public void setAuditBy(String auditBy) {
        this.auditBy = auditBy;
    }

    /**
     * 获取状态 0:添加/1:送审/2:回收/3:审核/4:反审核
     *
     * @return state - 状态 0:添加/1:送审/2:回收/3:审核/4:反审核
     */
    public Integer getState() {
        return state;
    }

    /**
     * 设置状态 0:添加/1:送审/2:回收/3:审核/4:反审核
     *
     * @param state 状态 0:添加/1:送审/2:回收/3:审核/4:反审核
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 获取描述
     *
     * @return description - 描述
     */
    public String getDescription() {
        return description;
    }

    /**
     * 设置描述
     *
     * @param description 描述
     */
    public void setDescription(String description) {
        this.description = description;
    }


    public String getSaleOneNumber() {
        return saleOneNumber;
    }

    public void setSaleOneNumber(String saleOneNumber) {
        this.saleOneNumber = saleOneNumber;
    }

    public String getSaleTwoNumber() {
        return saleTwoNumber;
    }

    public void setSaleTwoNumber(String saleTwoNumber) {
        this.saleTwoNumber = saleTwoNumber;
    }

    public String getSaleThreeNumber() {
        return saleThreeNumber;
    }

    public void setSaleThreeNumber(String saleThreeNumber) {
        this.saleThreeNumber = saleThreeNumber;
    }

    public String getSaleFourNumber() {
        return saleFourNumber;
    }

    public void setSaleFourNumber(String saleFourNumber) {
        this.saleFourNumber = saleFourNumber;
    }

    public Long getSaleOneStaffId() {
        return saleOneStaffId;
    }

    public void setSaleOneStaffId(Long saleOneStaffId) {
        this.saleOneStaffId = saleOneStaffId;
    }

    public Long getSaleTwoStaffId() {
        return saleTwoStaffId;
    }

    public void setSaleTwoStaffId(Long saleTwoStaffId) {
        this.saleTwoStaffId = saleTwoStaffId;
    }

    public Long getSaleThreeStaffId() {
        return saleThreeStaffId;
    }

    public void setSaleThreeStaffId(Long saleThreeStaffId) {
        this.saleThreeStaffId = saleThreeStaffId;
    }

    public Long getSaleFourStaffId() {
        return saleFourStaffId;
    }

    public void setSaleFourStaffId(Long saleFourStaffId) {
        this.saleFourStaffId = saleFourStaffId;
    }

    public String getSaleOneStaffName() {
        return saleOneStaffName;
    }

    public void setSaleOneStaffName(String saleOneStaffName) {
        this.saleOneStaffName = saleOneStaffName;
    }

    public String getSaleTwoStaffName() {
        return saleTwoStaffName;
    }

    public void setSaleTwoStaffName(String saleTwoStaffName) {
        this.saleTwoStaffName = saleTwoStaffName;
    }

    public String getSaleThreeStaffName() {
        return saleThreeStaffName;
    }

    public void setSaleThreeStaffName(String saleThreeStaffName) {
        this.saleThreeStaffName = saleThreeStaffName;
    }

    public String getSaleFourStaffName() {
        return saleFourStaffName;
    }

    public void setSaleFourStaffName(String saleFourStaffName) {
        this.saleFourStaffName = saleFourStaffName;
    }

    public String getSaleOneIdentity() {
        return saleOneIdentity;
    }

    public void setSaleOneIdentity(String saleOneIdentity) {
        this.saleOneIdentity = saleOneIdentity;
    }

    public String getSaleTwoIdentity() {
        return saleTwoIdentity;
    }

    public void setSaleTwoIdentity(String saleTwoIdentity) {
        this.saleTwoIdentity = saleTwoIdentity;
    }

    public String getSaleThreeIdentity() {
        return saleThreeIdentity;
    }

    public void setSaleThreeIdentity(String saleThreeIdentity) {
        this.saleThreeIdentity = saleThreeIdentity;
    }

    public String getSaleFourIdentity() {
        return saleFourIdentity;
    }

    public void setSaleFourIdentity(String saleFourIdentity) {
        this.saleFourIdentity = saleFourIdentity;
    }

    public BigDecimal getSaleOneRatio() {
        return saleOneRatio;
    }

    public void setSaleOneRatio(BigDecimal saleOneRatio) {
        this.saleOneRatio = saleOneRatio;
    }

    public BigDecimal getSaleTwoRatio() {
        return saleTwoRatio;
    }

    public void setSaleTwoRatio(BigDecimal saleTwoRatio) {
        this.saleTwoRatio = saleTwoRatio;
    }

    public BigDecimal getSaleThreeRatio() {
        return saleThreeRatio;
    }

    public void setSaleThreeRatio(BigDecimal saleThreeRatio) {
        this.saleThreeRatio = saleThreeRatio;
    }

    public BigDecimal getSaleFourRatio() {
        return saleFourRatio;
    }

    public void setSaleFourRatio(BigDecimal saleFourRatio) {
        this.saleFourRatio = saleFourRatio;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        CardChangeList other = (CardChangeList) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDocNum() == null ? other.getDocNum() == null : this.getDocNum().equals(other.getDocNum()))
            && (this.getDocDate() == null ? other.getDocDate() == null : this.getDocDate().equals(other.getDocDate()))
            && (this.getStoreId() == null ? other.getStoreId() == null : this.getStoreId().equals(other.getStoreId()))
            && (this.getStoreName() == null ? other.getStoreName() == null : this.getStoreName().equals(other.getStoreName()))
            && (this.getMemberId() == null ? other.getMemberId() == null : this.getMemberId().equals(other.getMemberId()))
            && (this.getMemberName() == null ? other.getMemberName() == null : this.getMemberName().equals(other.getMemberName()))
            && (this.getMemberIdentityCard() == null ? other.getMemberIdentityCard() == null : this.getMemberIdentityCard().equals(other.getMemberIdentityCard()))
            && (this.getMobilePhone() == null ? other.getMobilePhone() == null : this.getMobilePhone().equals(other.getMobilePhone()))
            && (this.getInputId() == null ? other.getInputId() == null : this.getInputId().equals(other.getInputId()))
            && (this.getInputBy() == null ? other.getInputBy() == null : this.getInputBy().equals(other.getInputBy()))
            && (this.getDebtMoney() == null ? other.getDebtMoney() == null : this.getDebtMoney().equals(other.getDebtMoney()))
            && (this.getChangeInPayMoney() == null ? other.getChangeInPayMoney() == null : this.getChangeInPayMoney().equals(other.getChangeInPayMoney()))
            && (this.getChangeInMoney() == null ? other.getChangeInMoney() == null : this.getChangeInMoney().equals(other.getChangeInMoney()))
            && (this.getChangeOutMoney() == null ? other.getChangeOutMoney() == null : this.getChangeOutMoney().equals(other.getChangeOutMoney()))
            && (this.getDifferenceMoney() == null ? other.getDifferenceMoney() == null : this.getDifferenceMoney().equals(other.getDifferenceMoney()))
            && (this.getAdditionDate() == null ? other.getAdditionDate() == null : this.getAdditionDate().equals(other.getAdditionDate()))
            && (this.getIsAddition() == null ? other.getIsAddition() == null : this.getIsAddition().equals(other.getIsAddition()))
            && (this.getIsCancel() == null ? other.getIsCancel() == null : this.getIsCancel().equals(other.getIsCancel()))
            && (this.getIsDebt() == null ? other.getIsDebt() == null : this.getIsDebt().equals(other.getIsDebt()))
            && (this.getCancelDate() == null ? other.getCancelDate() == null : this.getCancelDate().equals(other.getCancelDate()))
            && (this.getCancelId() == null ? other.getCancelId() == null : this.getCancelId().equals(other.getCancelId()))
            && (this.getCancelBy() == null ? other.getCancelBy() == null : this.getCancelBy().equals(other.getCancelBy()))
            && (this.getAuditDate() == null ? other.getAuditDate() == null : this.getAuditDate().equals(other.getAuditDate()))
            && (this.getAuditId() == null ? other.getAuditId() == null : this.getAuditId().equals(other.getAuditId()))
            && (this.getAuditBy() == null ? other.getAuditBy() == null : this.getAuditBy().equals(other.getAuditBy()))
            && (this.getState() == null ? other.getState() == null : this.getState().equals(other.getState()))
            && (this.getDescription() == null ? other.getDescription() == null : this.getDescription().equals(other.getDescription()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDocNum() == null) ? 0 : getDocNum().hashCode());
        result = prime * result + ((getDocDate() == null) ? 0 : getDocDate().hashCode());
        result = prime * result + ((getStoreId() == null) ? 0 : getStoreId().hashCode());
        result = prime * result + ((getStoreName() == null) ? 0 : getStoreName().hashCode());
        result = prime * result + ((getMemberId() == null) ? 0 : getMemberId().hashCode());
        result = prime * result + ((getMemberName() == null) ? 0 : getMemberName().hashCode());
        result = prime * result + ((getMemberIdentityCard() == null) ? 0 : getMemberIdentityCard().hashCode());
        result = prime * result + ((getMobilePhone() == null) ? 0 : getMobilePhone().hashCode());
        result = prime * result + ((getInputId() == null) ? 0 : getInputId().hashCode());
        result = prime * result + ((getInputBy() == null) ? 0 : getInputBy().hashCode());
        result = prime * result + ((getDebtMoney() == null) ? 0 : getDebtMoney().hashCode());
        result = prime * result + ((getChangeInPayMoney() == null) ? 0 : getChangeInPayMoney().hashCode());
        result = prime * result + ((getChangeInMoney() == null) ? 0 : getChangeInMoney().hashCode());
        result = prime * result + ((getChangeOutMoney() == null) ? 0 : getChangeOutMoney().hashCode());
        result = prime * result + ((getDifferenceMoney() == null) ? 0 : getDifferenceMoney().hashCode());
        result = prime * result + ((getAdditionDate() == null) ? 0 : getAdditionDate().hashCode());
        result = prime * result + ((getIsAddition() == null) ? 0 : getIsAddition().hashCode());
        result = prime * result + ((getIsCancel() == null) ? 0 : getIsCancel().hashCode());
        result = prime * result + ((getIsDebt() == null) ? 0 : getIsDebt().hashCode());
        result = prime * result + ((getCancelDate() == null) ? 0 : getCancelDate().hashCode());
        result = prime * result + ((getCancelId() == null) ? 0 : getCancelId().hashCode());
        result = prime * result + ((getCancelBy() == null) ? 0 : getCancelBy().hashCode());
        result = prime * result + ((getAuditDate() == null) ? 0 : getAuditDate().hashCode());
        result = prime * result + ((getAuditId() == null) ? 0 : getAuditId().hashCode());
        result = prime * result + ((getAuditBy() == null) ? 0 : getAuditBy().hashCode());
        result = prime * result + ((getState() == null) ? 0 : getState().hashCode());
        result = prime * result + ((getDescription() == null) ? 0 : getDescription().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(", docNum=").append(docNum);
        sb.append(", docDate=").append(docDate);
        sb.append(", storeId=").append(storeId);
        sb.append(", storeName=").append(storeName);
        sb.append(", memberId=").append(memberId);
        sb.append(", memberName=").append(memberName);
        sb.append(", memberIdentityCard=").append(memberIdentityCard);
        sb.append(", mobilePhone=").append(mobilePhone);
        sb.append(", inputId=").append(inputId);
        sb.append(", inputBy=").append(inputBy);
        sb.append(", debtMoney=").append(debtMoney);
        sb.append(", changeInPayMoney=").append(changeInPayMoney);
        sb.append(", changeInMoney=").append(changeInMoney);
        sb.append(", changeOutMoney=").append(changeOutMoney);
        sb.append(", differenceMoney=").append(differenceMoney);
        sb.append(", additionDate=").append(additionDate);
        sb.append(", isAddition=").append(isAddition);
        sb.append(", isCancel=").append(isCancel);
        sb.append(", isDebt=").append(isDebt);
        sb.append(", cancelDate=").append(cancelDate);
        sb.append(", cancelId=").append(cancelId);
        sb.append(", cancelBy=").append(cancelBy);
        sb.append(", auditDate=").append(auditDate);
        sb.append(", auditId=").append(auditId);
        sb.append(", auditBy=").append(auditBy);
        sb.append(", state=").append(state);
        sb.append(", description=").append(description);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}