package com.uas.eis.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

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

/**
 * Created by luhg on 2018/4/25.
 * 销售订单明细
 */
@Entity
@Table(name = "edi_sale_detail")
@JsonIgnoreProperties(ignoreUnknown = true)
public class SaleDetail implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @SequenceGenerator(name="EDI_SALE_DETAIL_SEQUENCE_GENERATOR", sequenceName="EDI_SALE_DETAIL_SEQ", allocationSize=1)
    @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="EDI_SALE_DETAIL_SEQUENCE_GENERATOR")
    @Column(name = "id_")
    private Long id;

    @Column(name = "mainid_")
    private Long mainId;

    @Column(name = "spec_no")
    private String spec_no;

    @Column(name = "goods_count")
    private Double goods_count;

    @Column(name = "sell_price")
    private Double sell_price;

    @Column(name = "rec_id")
    private Long rec_id;


    public SaleDetail(){
    }

    public Long getId() {
        return id;
    }

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

    public Long getMainId() {
        return mainId;
    }

    public void setMainId(Long mainId) {
        this.mainId = mainId;
    }

    public String getSpec_no() {
        return spec_no;
    }

    public void setSpec_no(String spec_no) {
        this.spec_no = spec_no;
    }

    public Double getGoods_count() {
        return goods_count;
    }

    public void setGoods_count(Double goods_count) {
        this.goods_count = goods_count;
    }

    public Double getSell_price() {
        return sell_price;
    }

    public void setSell_price(Double sell_price) {
        this.sell_price = sell_price;
    }

    public Long getRec_id() {
        return rec_id;
    }

    public void setRec_id(Long rec_id) {
        this.rec_id = rec_id;
    }
}
