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 OrderRefundInvoice {
    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order_refund_invoice.id
     *
     * @mbg.generated Tue Sep 17 16:25:27 CST 2019
     */
    private Integer id;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order_refund_invoice.order_no
     *
     * @mbg.generated Tue Sep 17 16:25:27 CST 2019
     */
    private String orderNo;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order_refund_invoice.create_time
     *
     * @mbg.generated Tue Sep 17 16:25:27 CST 2019
     */
    private Date createTime;

    /**
     *
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column order_refund_invoice.amount
     *
     * @mbg.generated Tue Sep 17 16:25:27 CST 2019
     */
    private BigDecimal amount;
    
    
    
    public String getCreateTimes() {
    	if(getCreateTime()!=null)return DateFormatUtils.format(this.getCreateTime(), AFTConstants.YYYYMMDDHHMMSS);
        return "";
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column order_refund_invoice.id
     *
     * @return the value of order_refund_invoice.id
     *
     * @mbg.generated Tue Sep 17 16:25:27 CST 2019
     */
    public Integer getId() {
        return id;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order_refund_invoice.id
     *
     * @param id the value for order_refund_invoice.id
     *
     * @mbg.generated Tue Sep 17 16:25:27 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 order_refund_invoice.order_no
     *
     * @return the value of order_refund_invoice.order_no
     *
     * @mbg.generated Tue Sep 17 16:25:27 CST 2019
     */
    public String getOrderNo() {
        return orderNo;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order_refund_invoice.order_no
     *
     * @param orderNo the value for order_refund_invoice.order_no
     *
     * @mbg.generated Tue Sep 17 16:25:27 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 order_refund_invoice.create_time
     *
     * @return the value of order_refund_invoice.create_time
     *
     * @mbg.generated Tue Sep 17 16:25:27 CST 2019
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order_refund_invoice.create_time
     *
     * @param createTime the value for order_refund_invoice.create_time
     *
     * @mbg.generated Tue Sep 17 16:25:27 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 order_refund_invoice.amount
     *
     * @return the value of order_refund_invoice.amount
     *
     * @mbg.generated Tue Sep 17 16:25:27 CST 2019
     */
    public BigDecimal getAmount() {
        return amount;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column order_refund_invoice.amount
     *
     * @param amount the value for order_refund_invoice.amount
     *
     * @mbg.generated Tue Sep 17 16:25:27 CST 2019
     */
    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }
}