package com.palmnest.model.bill;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 客户预存或扣费记录信息实体类
 *
 * @author 金牙
 */
@Entity
@Table(name = "tb_deposit_record")
public class DepositRecord implements java.io.Serializable {

	/**
	 * 序列号
	 */
	private static final long serialVersionUID = 3835315213572274059L;

	private Integer    id;            //主键ID
	private Integer    virtualId;    //企业ID
	private Integer    organizationId;//项目ID
	private String     status;        //状态(1-充值，-1扣减)
	private BigDecimal amountFee;//金额
	private String     remark;        //备注
	private Date       createTime;    //创建日期
	private String     creator;        //创建者

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "ID", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

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

	@Column(name = "virtualId")
	public Integer getVirtualId() {
		return virtualId;
	}

	public void setVirtualId(Integer virtualId) {
		this.virtualId = virtualId;
	}

	@Column(name = "organizationId")
	public Integer getOrganizationId() {
		return organizationId;
	}

	public void setOrganizationId(Integer organizationId) {
		this.organizationId = organizationId;
	}

	@Column(name = "status")
	public String getStatus() {
		return status;
	}

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

	@Column(name = "amountFee")
	public BigDecimal getAmountFee() {
		return amountFee;
	}

	public void setAmountFee(BigDecimal amountFee) {
		this.amountFee = amountFee;
	}

	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "createTime")
	public Date getCreateTime() {
		return createTime;
	}

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

	@Column(name = "creator")
	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}
}
