package com.sifang.modules.supply.stock.entity;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author hongzq
 */
@Entity
@Table(name = "crm_supply_material_warehouse_stocks")
public class MaterialWarehouseStocks implements Serializable {

    private String id;

    private String materialId;

    private String warehouseId;

    private String type;

    private String ascriptionId;

    private String ascriptionName;

    private String remarks;

    private BigDecimal warning;

    private BigDecimal frozeInNum;

    private BigDecimal frozeOutNum;

    private BigDecimal realNum;

    private BigDecimal total;

    private Date createTime;

    private String createBy;

    private Date newestKeepTime;

    private Date newestStorageTime;

    private BigDecimal costPrice;

    private BigDecimal bdSalePrice;

    private String ykYfhAmount;

    private String ykYazAmount;

    private String ykYfdAmount;

    private String ykThAmount;

    private String ykMdAmount;


    public MaterialWarehouseStocks(){
        super();
        this.frozeInNum=BigDecimal.ZERO;
        this.frozeOutNum=BigDecimal.ZERO;
        this.realNum=BigDecimal.ZERO;
        this.total=BigDecimal.ZERO;
        this.warning=BigDecimal.ZERO;
    }

    @Id
    @GeneratedValue(generator = "idGenerator")
    @GenericGenerator(name = "idGenerator", strategy = "uuid")
    public String getId() {
        return id;
    }

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

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    public String getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(String warehouseId) {
        this.warehouseId = warehouseId;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAscriptionId() {
        return ascriptionId;
    }

    public void setAscriptionId(String ascriptionId) {
        this.ascriptionId = ascriptionId;
    }

    public String getAscriptionName() {
        return ascriptionName;
    }

    public void setAscriptionName(String ascriptionName) {
        this.ascriptionName = ascriptionName;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public BigDecimal getWarning() {
        return warning;
    }

    public void setWarning(BigDecimal warning) {
        this.warning = warning;
    }

    public BigDecimal getFrozeInNum() {
        return frozeInNum;
    }

    public void setFrozeInNum(BigDecimal frozeInNum) {
        this.frozeInNum = frozeInNum;
    }

    public BigDecimal getFrozeOutNum() {
        return frozeOutNum;
    }

    public void setFrozeOutNum(BigDecimal frozeOutNum) {
        this.frozeOutNum = frozeOutNum;
    }

    public BigDecimal getRealNum() {
        return realNum;
    }

    public void setRealNum(BigDecimal realNum) {
        this.realNum = realNum;
    }

    public BigDecimal getTotal() {
        return total;
    }

    public void setTotal(BigDecimal total) {
        this.total = total;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getCreateBy() {
        return createBy;
    }

    public void setCreateBy(String createBy) {
        this.createBy = createBy;
    }

    public Date getNewestKeepTime() {
        return newestKeepTime;
    }

    public void setNewestKeepTime(Date newestKeepTime) {
        this.newestKeepTime = newestKeepTime;
    }

    public Date getNewestStorageTime() {
        return newestStorageTime;
    }

    public void setNewestStorageTime(Date newestStorageTime) {
        this.newestStorageTime = newestStorageTime;
    }


    public BigDecimal getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(BigDecimal costPrice) {
        this.costPrice = costPrice;
    }

    public BigDecimal getBdSalePrice() {
        return bdSalePrice;
    }

    public void setBdSalePrice(BigDecimal bdSalePrice) {
        this.bdSalePrice = bdSalePrice;
    }

    public String getYkYfhAmount() {
        return ykYfhAmount;
    }

    public void setYkYfhAmount(String ykYfhAmount) {
        this.ykYfhAmount = ykYfhAmount;
    }

    public String getYkYazAmount() {
        return ykYazAmount;
    }

    public void setYkYazAmount(String ykYazAmount) {
        this.ykYazAmount = ykYazAmount;
    }

    public String getYkYfdAmount() {
        return ykYfdAmount;
    }

    public void setYkYfdAmount(String ykYfdAmount) {
        this.ykYfdAmount = ykYfdAmount;
    }

    public String getYkThAmount() {
        return ykThAmount;
    }

    public void setYkThAmount(String ykThAmount) {
        this.ykThAmount = ykThAmount;
    }

    public String getYkMdAmount() {
        return ykMdAmount;
    }

    public void setYkMdAmount(String ykMdAmount) {
        this.ykMdAmount = ykMdAmount;
    }
}
