package com.ifish.entity;

import java.io.Serializable;

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

/**
 * 获取经验值规则
 * @author Administrator
 *
 */
@Entity
@Table(name="tbl_grade_task")
public class GradeTask implements Serializable{

	private static final long serialVersionUID = 8410405690637553622L;
	/**
	 * 规则类型
	 */
	@Id
	@Column(name="task_type",nullable=false,length=20)
	private String ruleType;
	/**
	 * 规则名称
	 */
	@Column(name="task_name",nullable=false,length=20)
	private String ruleName;
	/**
	 * 增加经验值
	 */
	@Column(name="add_value",nullable=false)
	private Integer addValue;
	/**
	 * 加成类型(once:一次,everyDay:每天,everyTime:每次)
	 */
	@Column(name="add_type",nullable=false,length=20)
	private String addType;
	/**
	 * 是否返回app显示(1:是,0:否)
	 */
	@Column(name="state",nullable=false,length=1)
	private String state;
	/**
	 * 排序字段
	 */
	@Column(name="order_num")
	private Integer orderNum;
	/**
	 * 规则描述
	 */
	@Column(name="task_remark",nullable=false,length=50)
	private String ruleRemark;
	
	public String getRuleType() {
		return ruleType;
	}
	public void setRuleType(String ruleType) {
		this.ruleType = ruleType;
	}
	public String getRuleName() {
		return ruleName;
	}
	public void setRuleName(String ruleName) {
		this.ruleName = ruleName;
	}
	public Integer getAddValue() {
		return addValue;
	}
	public void setAddValue(Integer addValue) {
		this.addValue = addValue;
	}
	public String getAddType() {
		return addType;
	}
	public void setAddType(String addType) {
		this.addType = addType;
	}
	public String getState() {
		return state;
	}
	public void setState(String state) {
		this.state = state;
	}
	public Integer getOrderNum() {
		return orderNum;
	}
	public void setOrderNum(Integer orderNum) {
		this.orderNum = orderNum;
	}
	public String getRuleRemark() {
		return ruleRemark;
	}
	public void setRuleRemark(String ruleRemark) {
		this.ruleRemark = ruleRemark;
	}
	
}
