package com.palmnest.model.dinner;

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

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 积分操作记录表
 *
 * @author longmeizhen
 */
@Entity
@Table(name = "tb_integral_record")
public class IntegralRecodeInfo implements Serializable {

	/**
	 *
	 */
	private static final long serialVersionUID = 4837244947538468156L;

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", unique = true, nullable = false)
	private Long    id;//
	private String  creator;//操作人
	private Integer type;//类型1充值 2修改 3订餐 4转换到福利商城 5系统清理
	private String  targetName;//充值对象
	private String  targetNumber;//充值账号
	private Integer oldIntegral;//操作前积分
	private Integer newIntegral;//操作后积分
	private String  exchangeIntegral;//流转积分
	private Date    createTime;//操作时间
	private String  orgId;
	private String  targetId;//充值人

	public IntegralRecodeInfo() {

	}

	public IntegralRecodeInfo(String creator, Integer type, String targetName,
							  String targetNumber, Integer oldIntegral, Integer newIntegral,
							  Date createTime, String exchangeIntegral, String orgId, String targetId) {
		super();
		this.creator = creator;
		this.type = type;
		this.targetName = targetName;
		this.targetNumber = targetNumber;
		this.oldIntegral = oldIntegral;
		this.newIntegral = newIntegral;
		this.createTime = createTime;
		this.exchangeIntegral = exchangeIntegral;
		this.orgId = orgId;
		this.targetId = targetId;
	}

	public Long getId() {
		return id;
	}

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

	public String getCreator() {
		return creator;
	}

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

	public Integer getType() {
		return type;
	}

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

	public String getTargetName() {
		return targetName;
	}

	public void setTargetName(String targetName) {
		this.targetName = targetName;
	}

	public String getTargetNumber() {
		return targetNumber;
	}

	public void setTargetNumber(String targetNumber) {
		this.targetNumber = targetNumber;
	}

	public Integer getOldIntegral() {
		return oldIntegral;
	}

	public void setOldIntegral(Integer oldIntegral) {
		this.oldIntegral = oldIntegral;
	}

	public Integer getNewIntegral() {
		return newIntegral;
	}

	public void setNewIntegral(Integer newIntegral) {
		this.newIntegral = newIntegral;
	}

	public Date getCreateTime() {
		return createTime;
	}

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

	public String getExchangeIntegral() {
		return exchangeIntegral;
	}

	public void setExchangeIntegral(String exchangeIntegral) {
		this.exchangeIntegral = exchangeIntegral;
	}

	public String getOrgId() {
		return orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	public String getTargetId() {
		return targetId;
	}

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


}
