package com.sifang.modules.supply.order.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;

@Entity
@Table(name = "crm_supply_material_apply_gather")
public class CrmSupplyMaterialApplyGather implements Serializable {

  private String id;
  private String applyId;
  private String type;
  private String targetId;
  private BigDecimal amount;
  private BigDecimal beforeAmount;
  private BigDecimal afterAmount;
  private Integer sort;

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

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


  public String getType() {
    return type;
  }

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

  public String getApplyId() {
    return applyId;
  }

  public void setApplyId(String applyId) {
    this.applyId = applyId;
  }

  public String getTargetId() {
    return targetId;
  }

  public void setTargetId(String targetId) {
    this.targetId = targetId;
  }

  public BigDecimal getAmount() {
    return amount;
  }

  public void setAmount(BigDecimal amount) {
    this.amount = amount;
  }

  public Integer getSort() {
    return sort;
  }

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

  public BigDecimal getBeforeAmount() {
    return beforeAmount;
  }

  public void setBeforeAmount(BigDecimal beforeAmount) {
    this.beforeAmount = beforeAmount;
  }

  public BigDecimal getAfterAmount() {
    return afterAmount;
  }

  public void setAfterAmount(BigDecimal afterAmount) {
    this.afterAmount = afterAmount;
  }
}
