package com.huigou.topsun.sap.purchase.domain;

import javax.persistence.*;

import com.huigou.data.domain.model.FlowBillAbstractEntity;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * SAP采购申请
 * @TableName sap_purchase
 */
@Table(name="sap_purchase")
@Entity
@Data
public class SapPurchase extends FlowBillAbstractEntity {

    /**
     * pr类型
     */
    @Column(name = "BSART")
    private String bsart;

    /**
     * 采购申请编号
     */
    @Column(name = "BANFN")
    private String banfn;

    /**
     *批准日期
     */
    @Column(name = "FRGDT")
    private Date frgdt;

    /**
     * 科目分配类别
     */
    @Column(name = "KNTTP")
    private String knttp;

    private static final long serialVersionUID = 1L;

    @Override
    protected String getCodeRuleId() {
        return "sapPurchase";
    }
}