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


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

/**
 * 自动生成订单明细
 *
 * Created by hejq on 2018-05-02.
 */
@Table(name = "auto$orderitems")
@Entity
public class AutOrderDetail implements Serializable {

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

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

    /**
     * 物料编号
     */
    @Column(name = "pd_prodcode")
    private String pd_prodcode;

    /**
     * 采购数量
     */
    @Column(name = "pd_qty")
    private String pd_qty;

    /**
     * 采购价格
     */
    @Column(name = "pd_price")
    private String pd_price;

    /**
     * 交期
     */
    @Column(name = "pd_delivery")
    private String pd_delivery;

    /**
     * 税率税率
     */
    @Column(name = "pd_rate")
    private String pd_rate;

    /**
     * 序号
     */
    @Column(name = "pd_detno")
    private String pd_detno;

    /**
     * 采购订单id
     */
    @Column(name = "pd_puid")
    private Long puId;

    /**
     * 单据状态
     * <pre>
     *     TOBE_HANDLE(810, "未处理")
     *     HANDLED(811, "已处理")
     * </pre>
     */
    @Column(name = "pd_status")
    private Integer status;

    /**
     * 单据录入时间
     */
    @Column(name = "pd_date")
    private Date date;

    /**
     * 单据转订单时间
     */
    @Column(name = "pd_todate")
    private Date toDate;

    public Long getId() {
        return id;
    }

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

    public String getPd_prodcode() {
        return pd_prodcode;
    }

    public void setPd_prodcode(String pd_prodcode) {
        this.pd_prodcode = pd_prodcode;
    }

    public String getPd_qty() {
        return pd_qty;
    }

    public void setPd_qty(String pd_qty) {
        this.pd_qty = pd_qty;
    }

    public String getPd_price() {
        return pd_price;
    }

    public void setPd_price(String pd_price) {
        this.pd_price = pd_price;
    }

    public String getPd_delivery() {
        return pd_delivery;
    }

    public void setPd_delivery(String pd_delivery) {
        this.pd_delivery = pd_delivery;
    }

    public String getPd_rate() {
        return pd_rate;
    }

    public void setPd_rate(String pd_rate) {
        this.pd_rate = pd_rate;
    }

    public String getPd_detno() {
        return pd_detno;
    }

    public void setPd_detno(String pd_detno) {
        this.pd_detno = pd_detno;
    }

    public Long getPuId() {
        return puId;
    }

    public void setPuId(Long puId) {
        this.puId = puId;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Date getToDate() {
        return toDate;
    }

    public void setToDate(Date toDate) {
        this.toDate = toDate;
    }
}
