package pwc.taxtech.atms.vat.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import pwc.taxtech.atms.entity.BaseEntity;

/**
 *
 * This class was generated by MyBatis Generator.
 * This class corresponds to the database table bill_detail
 *
 * @mbg.generated do_not_delete_during_merge
 */
public class BillDetail extends BaseEntity implements Serializable {
    /**
     * Database Column Remarks:
     *   id
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.id
     *
     * @mbg.generated
     */
    private Long id;

    /**
     * Database Column Remarks:
     *   发票类型
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.bill_type
     *
     * @mbg.generated
     */
    private String billType;

    /**
     * Database Column Remarks:
     *   开票内容
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.bill_content
     *
     * @mbg.generated
     */
    private String billContent;

    /**
     * Database Column Remarks:
     *   金额
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.amount
     *
     * @mbg.generated
     */
    private BigDecimal amount;

    /**
     * Database Column Remarks:
     *   税额
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.tax_amount
     *
     * @mbg.generated
     */
    private BigDecimal taxAmount;

    /**
     * Database Column Remarks:
     *   开票金额
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.bill_amount
     *
     * @mbg.generated
     */
    private BigDecimal billAmount;

    /**
     * Database Column Remarks:
     *   税率
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.tax_rate
     *
     * @mbg.generated
     */
    private BigDecimal taxRate;

    /**
     * Database Column Remarks:
     *    申请人 
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.applicant
     *
     * @mbg.generated
     */
    private String applicant;

    /**
     * Database Column Remarks:
     *   OA申请单号
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.oa_no
     *
     * @mbg.generated
     */
    private String oaNo;

    /**
     * Database Column Remarks:
     *   合同编号
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.contract_no
     *
     * @mbg.generated
     */
    private String contractNo;

    /**
     * Database Column Remarks:
     *   合同金额
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.contract_amount
     *
     * @mbg.generated
     */
    private BigDecimal contractAmount;

    /**
     * Database Column Remarks:
     *   reconciliation
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.reconciliation
     *
     * @mbg.generated
     */
    private String reconciliation;

    /**
     * Database Column Remarks:
     *    所属部门 
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.department
     *
     * @mbg.generated
     */
    private String department;

    /**
     * Database Column Remarks:
     *   申请日期 yyyy-mm-dd
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.apply_date
     *
     * @mbg.generated
     */
    private String applyDate;

    /**
     * Database Column Remarks:
     *   开票日期 yyyy-mm-dd
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.bill_date
     *
     * @mbg.generated
     */
    private String billDate;

    /**
     * Database Column Remarks:
     *   开票月份
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.bill_month
     *
     * @mbg.generated
     */
    private String billMonth;

    /**
     * Database Column Remarks:
     *   发票号码
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.bill_no
     *
     * @mbg.generated
     */
    private String billNo;

    /**
     * Database Column Remarks:
     *    备注 
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.remark
     *
     * @mbg.generated
     */
    private String remark;

    /**
     * Database Column Remarks:
     *   发票张数
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.pages
     *
     * @mbg.generated
     */
    private Integer pages;

    /**
     * Database Column Remarks:
     *   收入类别
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.revenue_type
     *
     * @mbg.generated
     */
    private String revenueType;

    /**
     * Database Column Remarks:
     *   发票代码
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.bill_code
     *
     * @mbg.generated
     */
    private String billCode;

    /**
     * Database Column Remarks:
     *   发票状态
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.billStatus
     *
     * @mbg.generated
     */
    private String billstatus;

    /**
     * Database Column Remarks:
     *   revenue_config表主键id
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.revenue_cof_id
     *
     * @mbg.generated
     */
    private Long revenueCofId;

    /**
     * Database Column Remarks:
     *   组织id
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.organization_id
     *
     * @mbg.generated
     */
    private String organizationId;

    /**
     * Database Column Remarks:
     *   项目id
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.project_id
     *
     * @mbg.generated
     */
    private String projectId;

    /**
     * Database Column Remarks:
     *   期数 201901
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.period
     *
     * @mbg.generated
     */
    private Integer period;

    /**
     * Database Column Remarks:
     *   开票主体
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.subject
     *
     * @mbg.generated
     */
    private String subject;

    /**
     * Database Column Remarks:
     *   客户名称
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column bill_detail.customer
     *
     * @mbg.generated
     */
    private String customer;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database table bill_detail
     *
     * @mbg.generated
     */
    private static final long serialVersionUID = 1L;

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.id
     *
     * @return the value of bill_detail.id
     *
     * @mbg.generated
     */
    public Long getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.id
     *
     * @param id the value for bill_detail.id
     *
     * @mbg.generated
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.bill_type
     *
     * @return the value of bill_detail.bill_type
     *
     * @mbg.generated
     */
    public String getBillType() {
        return billType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.bill_type
     *
     * @param billType the value for bill_detail.bill_type
     *
     * @mbg.generated
     */
    public void setBillType(String billType) {
        this.billType = billType == null ? null : billType.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.bill_content
     *
     * @return the value of bill_detail.bill_content
     *
     * @mbg.generated
     */
    public String getBillContent() {
        return billContent;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.bill_content
     *
     * @param billContent the value for bill_detail.bill_content
     *
     * @mbg.generated
     */
    public void setBillContent(String billContent) {
        this.billContent = billContent == null ? null : billContent.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.amount
     *
     * @return the value of bill_detail.amount
     *
     * @mbg.generated
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.amount
     *
     * @param amount the value for bill_detail.amount
     *
     * @mbg.generated
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.tax_amount
     *
     * @return the value of bill_detail.tax_amount
     *
     * @mbg.generated
     */
    public BigDecimal getTaxAmount() {
        return taxAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.tax_amount
     *
     * @param taxAmount the value for bill_detail.tax_amount
     *
     * @mbg.generated
     */
    public void setTaxAmount(BigDecimal taxAmount) {
        this.taxAmount = taxAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.bill_amount
     *
     * @return the value of bill_detail.bill_amount
     *
     * @mbg.generated
     */
    public BigDecimal getBillAmount() {
        return billAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.bill_amount
     *
     * @param billAmount the value for bill_detail.bill_amount
     *
     * @mbg.generated
     */
    public void setBillAmount(BigDecimal billAmount) {
        this.billAmount = billAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.tax_rate
     *
     * @return the value of bill_detail.tax_rate
     *
     * @mbg.generated
     */
    public BigDecimal getTaxRate() {
        return taxRate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.tax_rate
     *
     * @param taxRate the value for bill_detail.tax_rate
     *
     * @mbg.generated
     */
    public void setTaxRate(BigDecimal taxRate) {
        this.taxRate = taxRate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.applicant
     *
     * @return the value of bill_detail.applicant
     *
     * @mbg.generated
     */
    public String getApplicant() {
        return applicant;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.applicant
     *
     * @param applicant the value for bill_detail.applicant
     *
     * @mbg.generated
     */
    public void setApplicant(String applicant) {
        this.applicant = applicant == null ? null : applicant.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.oa_no
     *
     * @return the value of bill_detail.oa_no
     *
     * @mbg.generated
     */
    public String getOaNo() {
        return oaNo;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.oa_no
     *
     * @param oaNo the value for bill_detail.oa_no
     *
     * @mbg.generated
     */
    public void setOaNo(String oaNo) {
        this.oaNo = oaNo == null ? null : oaNo.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.contract_no
     *
     * @return the value of bill_detail.contract_no
     *
     * @mbg.generated
     */
    public String getContractNo() {
        return contractNo;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.contract_no
     *
     * @param contractNo the value for bill_detail.contract_no
     *
     * @mbg.generated
     */
    public void setContractNo(String contractNo) {
        this.contractNo = contractNo == null ? null : contractNo.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.contract_amount
     *
     * @return the value of bill_detail.contract_amount
     *
     * @mbg.generated
     */
    public BigDecimal getContractAmount() {
        return contractAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.contract_amount
     *
     * @param contractAmount the value for bill_detail.contract_amount
     *
     * @mbg.generated
     */
    public void setContractAmount(BigDecimal contractAmount) {
        this.contractAmount = contractAmount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.reconciliation
     *
     * @return the value of bill_detail.reconciliation
     *
     * @mbg.generated
     */
    public String getReconciliation() {
        return reconciliation;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.reconciliation
     *
     * @param reconciliation the value for bill_detail.reconciliation
     *
     * @mbg.generated
     */
    public void setReconciliation(String reconciliation) {
        this.reconciliation = reconciliation == null ? null : reconciliation.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.department
     *
     * @return the value of bill_detail.department
     *
     * @mbg.generated
     */
    public String getDepartment() {
        return department;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.department
     *
     * @param department the value for bill_detail.department
     *
     * @mbg.generated
     */
    public void setDepartment(String department) {
        this.department = department == null ? null : department.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.apply_date
     *
     * @return the value of bill_detail.apply_date
     *
     * @mbg.generated
     */
    public String getApplyDate() {
        return applyDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.apply_date
     *
     * @param applyDate the value for bill_detail.apply_date
     *
     * @mbg.generated
     */
    public void setApplyDate(String applyDate) {
        this.applyDate = applyDate == null ? null : applyDate.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.bill_date
     *
     * @return the value of bill_detail.bill_date
     *
     * @mbg.generated
     */
    public String getBillDate() {
        return billDate;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.bill_date
     *
     * @param billDate the value for bill_detail.bill_date
     *
     * @mbg.generated
     */
    public void setBillDate(String billDate) {
        this.billDate = billDate == null ? null : billDate.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.bill_month
     *
     * @return the value of bill_detail.bill_month
     *
     * @mbg.generated
     */
    public String getBillMonth() {
        return billMonth;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.bill_month
     *
     * @param billMonth the value for bill_detail.bill_month
     *
     * @mbg.generated
     */
    public void setBillMonth(String billMonth) {
        this.billMonth = billMonth == null ? null : billMonth.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.bill_no
     *
     * @return the value of bill_detail.bill_no
     *
     * @mbg.generated
     */
    public String getBillNo() {
        return billNo;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.bill_no
     *
     * @param billNo the value for bill_detail.bill_no
     *
     * @mbg.generated
     */
    public void setBillNo(String billNo) {
        this.billNo = billNo == null ? null : billNo.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.remark
     *
     * @return the value of bill_detail.remark
     *
     * @mbg.generated
     */
    public String getRemark() {
        return remark;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.remark
     *
     * @param remark the value for bill_detail.remark
     *
     * @mbg.generated
     */
    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.pages
     *
     * @return the value of bill_detail.pages
     *
     * @mbg.generated
     */
    public Integer getPages() {
        return pages;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.pages
     *
     * @param pages the value for bill_detail.pages
     *
     * @mbg.generated
     */
    public void setPages(Integer pages) {
        this.pages = pages;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.revenue_type
     *
     * @return the value of bill_detail.revenue_type
     *
     * @mbg.generated
     */
    public String getRevenueType() {
        return revenueType;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.revenue_type
     *
     * @param revenueType the value for bill_detail.revenue_type
     *
     * @mbg.generated
     */
    public void setRevenueType(String revenueType) {
        this.revenueType = revenueType == null ? null : revenueType.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.bill_code
     *
     * @return the value of bill_detail.bill_code
     *
     * @mbg.generated
     */
    public String getBillCode() {
        return billCode;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.bill_code
     *
     * @param billCode the value for bill_detail.bill_code
     *
     * @mbg.generated
     */
    public void setBillCode(String billCode) {
        this.billCode = billCode == null ? null : billCode.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.billStatus
     *
     * @return the value of bill_detail.billStatus
     *
     * @mbg.generated
     */
    public String getBillstatus() {
        return billstatus;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.billStatus
     *
     * @param billstatus the value for bill_detail.billStatus
     *
     * @mbg.generated
     */
    public void setBillstatus(String billstatus) {
        this.billstatus = billstatus == null ? null : billstatus.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.revenue_cof_id
     *
     * @return the value of bill_detail.revenue_cof_id
     *
     * @mbg.generated
     */
    public Long getRevenueCofId() {
        return revenueCofId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.revenue_cof_id
     *
     * @param revenueCofId the value for bill_detail.revenue_cof_id
     *
     * @mbg.generated
     */
    public void setRevenueCofId(Long revenueCofId) {
        this.revenueCofId = revenueCofId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.organization_id
     *
     * @return the value of bill_detail.organization_id
     *
     * @mbg.generated
     */
    public String getOrganizationId() {
        return organizationId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.organization_id
     *
     * @param organizationId the value for bill_detail.organization_id
     *
     * @mbg.generated
     */
    public void setOrganizationId(String organizationId) {
        this.organizationId = organizationId == null ? null : organizationId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.project_id
     *
     * @return the value of bill_detail.project_id
     *
     * @mbg.generated
     */
    public String getProjectId() {
        return projectId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.project_id
     *
     * @param projectId the value for bill_detail.project_id
     *
     * @mbg.generated
     */
    public void setProjectId(String projectId) {
        this.projectId = projectId == null ? null : projectId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.period
     *
     * @return the value of bill_detail.period
     *
     * @mbg.generated
     */
    public Integer getPeriod() {
        return period;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.period
     *
     * @param period the value for bill_detail.period
     *
     * @mbg.generated
     */
    public void setPeriod(Integer period) {
        this.period = period;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.subject
     *
     * @return the value of bill_detail.subject
     *
     * @mbg.generated
     */
    public String getSubject() {
        return subject;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.subject
     *
     * @param subject the value for bill_detail.subject
     *
     * @mbg.generated
     */
    public void setSubject(String subject) {
        this.subject = subject == null ? null : subject.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column bill_detail.customer
     *
     * @return the value of bill_detail.customer
     *
     * @mbg.generated
     */
    public String getCustomer() {
        return customer;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column bill_detail.customer
     *
     * @param customer the value for bill_detail.customer
     *
     * @mbg.generated
     */
    public void setCustomer(String customer) {
        this.customer = customer == null ? null : customer.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table bill_detail
     *
     * @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(", billType=").append(billType);
        sb.append(", billContent=").append(billContent);
        sb.append(", amount=").append(amount);
        sb.append(", taxAmount=").append(taxAmount);
        sb.append(", billAmount=").append(billAmount);
        sb.append(", taxRate=").append(taxRate);
        sb.append(", applicant=").append(applicant);
        sb.append(", oaNo=").append(oaNo);
        sb.append(", contractNo=").append(contractNo);
        sb.append(", contractAmount=").append(contractAmount);
        sb.append(", reconciliation=").append(reconciliation);
        sb.append(", department=").append(department);
        sb.append(", applyDate=").append(applyDate);
        sb.append(", billDate=").append(billDate);
        sb.append(", billMonth=").append(billMonth);
        sb.append(", billNo=").append(billNo);
        sb.append(", remark=").append(remark);
        sb.append(", pages=").append(pages);
        sb.append(", revenueType=").append(revenueType);
        sb.append(", billCode=").append(billCode);
        sb.append(", billstatus=").append(billstatus);
        sb.append(", revenueCofId=").append(revenueCofId);
        sb.append(", organizationId=").append(organizationId);
        sb.append(", projectId=").append(projectId);
        sb.append(", period=").append(period);
        sb.append(", subject=").append(subject);
        sb.append(", customer=").append(customer);
        sb.append("]");
        return sb.toString();
    }
}