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

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.math.BigDecimal;
@Entity
@Table(name = "crm_supply_material_deliver_order_detail")
public class CrmSupplyMaterialDeliverOrderDetail implements Serializable {

  private String id;
  private String mainId;

  private String materialType;

  private String materialSpec;

  private String materialId;

  private BigDecimal  salesPrice;
  private BigDecimal purchasePrice;
  private BigDecimal applyAmount;
  private BigDecimal outAmount;
  private BigDecimal inAmount;

  private Integer sort;

  private String status;

  private String materialCode;

  private String unitCode;

  public CrmSupplyMaterialDeliverOrderDetail(){
    super();
    this.applyAmount=BigDecimal.ZERO;
    this.salesPrice=BigDecimal.ZERO;
    this.purchasePrice=BigDecimal.ZERO;
    this.outAmount=BigDecimal.ZERO;
    this.inAmount=BigDecimal.ZERO;
  }
  @Transient
  public String getUnitCode() {
    return unitCode;
  }

  public void setUnitCode(String unitCode) {
    this.unitCode = unitCode;
  }
  @Transient
  public String getMaterialCode() {
    return materialCode;
  }

  public void setMaterialCode(String materialCode) {
    this.materialCode = materialCode;
  }

  public BigDecimal getInAmount() {
    return inAmount;
  }

  public void setInAmount(BigDecimal inAmount) {
    this.inAmount = inAmount;
  }

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

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


  public String getMainId() {
    return mainId;
  }

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

  public String getMaterialId() {
    return materialId;
  }

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

  public BigDecimal getApplyAmount() {
    return applyAmount;
  }

  public void setApplyAmount(BigDecimal applyAmount) {
    this.applyAmount = applyAmount;
  }

  public BigDecimal getOutAmount() {
    return outAmount;
  }

  public void setOutAmount(BigDecimal outAmount) {
    this.outAmount = outAmount;
  }

  public Integer getSort() {
    return sort;
  }

  public void setSort(Integer sort) {
    this.sort = sort;
  }

  public String getMaterialType() {
    return materialType;
  }

  public void setMaterialType(String materialType) {
    this.materialType = materialType;
  }

  public String getMaterialSpec() {
    return materialSpec;
  }

  public void setMaterialSpec(String materialSpec) {
    this.materialSpec = materialSpec;
  }

  public BigDecimal getSalesPrice() {
    return salesPrice;
  }

  public void setSalesPrice(BigDecimal salesPrice) {
    this.salesPrice = salesPrice;
  }

  public BigDecimal getPurchasePrice() {
    return purchasePrice;
  }

  public void setPurchasePrice(BigDecimal purchasePrice) {
    this.purchasePrice = purchasePrice;
  }

  public String getStatus() {
    return status;
  }

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