/**
 */
package com.sifang.modules.supply.warehouse.entity;

import javax.persistence.*;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.validator.constraints.Length;


import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 物料批次信息Entity
 * @author lzp
 * @version 
 */
@Entity
@Table(name = "crm_supply_material_batch")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class SupplyMaterialBatch implements Serializable {
	
	private static final long serialVersionUID = 1L;
	private String id; 		// 编号
	private String code;
	private String bizType;
	private String bizId;
	private String bizDetailId;
	private String bizCode;
	private String materialKeepId;
	private String materialId;
	private String belongType;
	private String belongId;
	private String warehouseId;
	private BigDecimal amount;
	private Date createTime;
	private Date inputTime;
	private Date instoreTime;
	private Date newestKeepTime;
	private Date newestStorageTime;
	private BigDecimal remaining;
	private BigDecimal soldNum;
	private BigDecimal costPrice;
	private BigDecimal bdSalePrice;
	private Date updateTime;
	@Version
	private Long version;

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

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

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getBizType() {
		return bizType;
	}

	public void setBizType(String bizType) {
		this.bizType = bizType;
	}

	public String getBizId() {
		return bizId;
	}

	public void setBizId(String bizId) {
		this.bizId = bizId;
	}

	public String getBizDetailId() {
		return bizDetailId;
	}

	public void setBizDetailId(String bizDetailId) {
		this.bizDetailId = bizDetailId;
	}

	public String getBizCode() {
		return bizCode;
	}

	public void setBizCode(String bizCode) {
		this.bizCode = bizCode;
	}

	public String getMaterialKeepId() {
		return materialKeepId;
	}

	public void setMaterialKeepId(String materialKeepId) {
		this.materialKeepId = materialKeepId;
	}

	public String getMaterialId() {
		return materialId;
	}

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

	public String getBelongType() {
		return belongType;
	}

	public void setBelongType(String belongType) {
		this.belongType = belongType;
	}

	public String getBelongId() {
		return belongId;
	}

	public void setBelongId(String belongId) {
		this.belongId = belongId;
	}

	public String getWarehouseId() {
		return warehouseId;
	}

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

	public BigDecimal getAmount() {
		return amount;
	}

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

	public Date getCreateTime() {
		return createTime;
	}

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

	public Date getInputTime() {
		return inputTime;
	}

	public void setInputTime(Date inputTime) {
		this.inputTime = inputTime;
	}

	public Date getInstoreTime() {
		return instoreTime;
	}

	public void setInstoreTime(Date instoreTime) {
		this.instoreTime = instoreTime;
	}



	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 getRemaining() {
		return remaining;
	}

	public void setRemaining(BigDecimal remaining) {
		this.remaining = remaining;
	}


	public BigDecimal getSoldNum() {
		return soldNum;
	}

	public void setSoldNum(BigDecimal soldNum) {
		this.soldNum = soldNum;
	}

	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 Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	public Long getVersion() {
		return version;
	}

	public void setVersion(Long version) {
		this.version = version;
	}
}


