package com.goafanti.common.model;

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

import org.apache.commons.lang3.time.DateFormatUtils;

import com.goafanti.common.constant.AFTConstants;

public class TOrderInvoice {

	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.id
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private Integer id;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.order_no
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String orderNo;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.type
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private Integer type;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.status
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private Integer status;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.reject_reason
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String rejectReason;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.remarks
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String remarks;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.invoice_type
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private Integer invoiceType;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.unit_name
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String unitName;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.tax_number
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String taxNumber;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.amount
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private BigDecimal amount;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.banks
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String banks;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.content
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String content;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.unit_address
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String unitAddress;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.invoice_remarks
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String invoiceRemarks;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.unit_mobile
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String unitMobile;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.voucher_url
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String voucherUrl;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.post
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private Integer post;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.addressee
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String addressee;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.addressee_mobile
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String addresseeMobile;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.addressee_province
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private Integer addresseeProvince;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.addressee_city
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private Integer addresseeCity;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.addressee_area
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private Integer addresseeArea;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.recipient_address
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private String recipientAddress;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.create_time
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private Date createTime;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.update_time
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private Date updateTime;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.approval
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private Integer approval;
	/**
	 * This field was generated by MyBatis Generator. This field corresponds to the database column t_order_invoice.already_amount
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	private BigDecimal alreadyAmount;

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.id
	 * @return  the value of t_order_invoice.id
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public Integer getId() {
		return id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.id
	 * @param id  the value for t_order_invoice.id
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setId(Integer id) {
		this.id = id;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.order_no
	 * @return  the value of t_order_invoice.order_no
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getOrderNo() {
		return orderNo;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.order_no
	 * @param orderNo  the value for t_order_invoice.order_no
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.type
	 * @return  the value of t_order_invoice.type
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public Integer getType() {
		return type;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.type
	 * @param type  the value for t_order_invoice.type
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setType(Integer type) {
		this.type = type;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.status
	 * @return  the value of t_order_invoice.status
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public Integer getStatus() {
		return status;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.status
	 * @param status  the value for t_order_invoice.status
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.reject_reason
	 * @return  the value of t_order_invoice.reject_reason
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getRejectReason() {
		return rejectReason;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.reject_reason
	 * @param rejectReason  the value for t_order_invoice.reject_reason
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setRejectReason(String rejectReason) {
		this.rejectReason = rejectReason;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.remarks
	 * @return  the value of t_order_invoice.remarks
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getRemarks() {
		return remarks;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.remarks
	 * @param remarks  the value for t_order_invoice.remarks
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setRemarks(String remarks) {
		this.remarks = remarks;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.invoice_type
	 * @return  the value of t_order_invoice.invoice_type
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public Integer getInvoiceType() {
		return invoiceType;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.invoice_type
	 * @param invoiceType  the value for t_order_invoice.invoice_type
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setInvoiceType(Integer invoiceType) {
		this.invoiceType = invoiceType;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.unit_name
	 * @return  the value of t_order_invoice.unit_name
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getUnitName() {
		return unitName;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.unit_name
	 * @param unitName  the value for t_order_invoice.unit_name
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setUnitName(String unitName) {
		this.unitName = unitName;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.tax_number
	 * @return  the value of t_order_invoice.tax_number
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getTaxNumber() {
		return taxNumber;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.tax_number
	 * @param taxNumber  the value for t_order_invoice.tax_number
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setTaxNumber(String taxNumber) {
		this.taxNumber = taxNumber;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.amount
	 * @return  the value of t_order_invoice.amount
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public BigDecimal getAmount() {
		return amount;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.amount
	 * @param amount  the value for t_order_invoice.amount
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.banks
	 * @return  the value of t_order_invoice.banks
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getBanks() {
		return banks;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.banks
	 * @param banks  the value for t_order_invoice.banks
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setBanks(String banks) {
		this.banks = banks;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.content
	 * @return  the value of t_order_invoice.content
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getContent() {
		return content;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.content
	 * @param content  the value for t_order_invoice.content
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setContent(String content) {
		this.content = content;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.unit_address
	 * @return  the value of t_order_invoice.unit_address
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getUnitAddress() {
		return unitAddress;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.unit_address
	 * @param unitAddress  the value for t_order_invoice.unit_address
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setUnitAddress(String unitAddress) {
		this.unitAddress = unitAddress;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.invoice_remarks
	 * @return  the value of t_order_invoice.invoice_remarks
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getInvoiceRemarks() {
		return invoiceRemarks;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.invoice_remarks
	 * @param invoiceRemarks  the value for t_order_invoice.invoice_remarks
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setInvoiceRemarks(String invoiceRemarks) {
		this.invoiceRemarks = invoiceRemarks;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.unit_mobile
	 * @return  the value of t_order_invoice.unit_mobile
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getUnitMobile() {
		return unitMobile;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.unit_mobile
	 * @param unitMobile  the value for t_order_invoice.unit_mobile
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setUnitMobile(String unitMobile) {
		this.unitMobile = unitMobile;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.voucher_url
	 * @return  the value of t_order_invoice.voucher_url
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getVoucherUrl() {
		return voucherUrl;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.voucher_url
	 * @param voucherUrl  the value for t_order_invoice.voucher_url
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setVoucherUrl(String voucherUrl) {
		this.voucherUrl = voucherUrl;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.post
	 * @return  the value of t_order_invoice.post
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public Integer getPost() {
		return post;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.post
	 * @param post  the value for t_order_invoice.post
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setPost(Integer post) {
		this.post = post;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.addressee
	 * @return  the value of t_order_invoice.addressee
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getAddressee() {
		return addressee;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.addressee
	 * @param addressee  the value for t_order_invoice.addressee
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setAddressee(String addressee) {
		this.addressee = addressee;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.addressee_mobile
	 * @return  the value of t_order_invoice.addressee_mobile
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getAddresseeMobile() {
		return addresseeMobile;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.addressee_mobile
	 * @param addresseeMobile  the value for t_order_invoice.addressee_mobile
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setAddresseeMobile(String addresseeMobile) {
		this.addresseeMobile = addresseeMobile;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.addressee_province
	 * @return  the value of t_order_invoice.addressee_province
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public Integer getAddresseeProvince() {
		return addresseeProvince;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.addressee_province
	 * @param addresseeProvince  the value for t_order_invoice.addressee_province
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setAddresseeProvince(Integer addresseeProvince) {
		this.addresseeProvince = addresseeProvince;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.addressee_city
	 * @return  the value of t_order_invoice.addressee_city
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public Integer getAddresseeCity() {
		return addresseeCity;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.addressee_city
	 * @param addresseeCity  the value for t_order_invoice.addressee_city
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setAddresseeCity(Integer addresseeCity) {
		this.addresseeCity = addresseeCity;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.addressee_area
	 * @return  the value of t_order_invoice.addressee_area
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public Integer getAddresseeArea() {
		return addresseeArea;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.addressee_area
	 * @param addresseeArea  the value for t_order_invoice.addressee_area
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setAddresseeArea(Integer addresseeArea) {
		this.addresseeArea = addresseeArea;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.recipient_address
	 * @return  the value of t_order_invoice.recipient_address
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public String getRecipientAddress() {
		return recipientAddress;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.recipient_address
	 * @param recipientAddress  the value for t_order_invoice.recipient_address
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setRecipientAddress(String recipientAddress) {
		this.recipientAddress = recipientAddress;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.create_time
	 * @return  the value of t_order_invoice.create_time
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public Date getCreateTime() {
		return createTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.create_time
	 * @param createTime  the value for t_order_invoice.create_time
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.update_time
	 * @return  the value of t_order_invoice.update_time
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public Date getUpdateTime() {
		return updateTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.update_time
	 * @param updateTime  the value for t_order_invoice.update_time
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.approval
	 * @return  the value of t_order_invoice.approval
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public Integer getApproval() {
		return approval;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.approval
	 * @param approval  the value for t_order_invoice.approval
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setApproval(Integer approval) {
		this.approval = approval;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the value of the database column t_order_invoice.already_amount
	 * @return  the value of t_order_invoice.already_amount
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public BigDecimal getAlreadyAmount() {
		return alreadyAmount;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the value of the database column t_order_invoice.already_amount
	 * @param alreadyAmount  the value for t_order_invoice.already_amount
	 * @mbg.generated  Fri May 17 09:46:50 CST 2019
	 */
	public void setAlreadyAmount(BigDecimal alreadyAmount) {
		this.alreadyAmount = alreadyAmount;
	}

	public String getCreateTimes() {
		if(this.createTime==null) {
			return null;
		}else {
			return DateFormatUtils.format(this.createTime, AFTConstants.YYYYMMDDHHMMSS);
		}
			
	}

	

	
}