package com.uas.platform.b2b.publicapi.model;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 销售金额统计
 *
 * Created by hejq on 2018-05-30.
 */
@Entity
@Table(name = "trade_count")
public class TradeCount implements Serializable {

    /**
     *
     */
    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "tr_id")
    private Long id;

    /**
     * 单据类型
     *  <node>
     *      trade: 交易
     *  </node>
     */
    @Column(name = "tr_type")
    private String tradeType;

    /**
     * 币别
     */
    @Column(name = "tr_currency")
    private String currency;

    /**
     * 金额
     */
    @Column(name = "tr_amount")
    private BigDecimal amount;

    /**
     * 开始时间
     */
    @Column(name = "tr_fromdate")
    private String fromDate;

    /**
     * 截止时间
     */
    @Column(name = "tr_enddate")
    private String endDate;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTradeType() {
        return tradeType;
    }

    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }

    public String getCurrency() {
        return currency;
    }

    public void setCurrency(String currency) {
        this.currency = currency;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public String getFromDate() {
        return fromDate;
    }

    public void setFromDate(String fromDate) {
        this.fromDate = fromDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }
}
