package com.fourdage.dingding.entity;

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

import org.hibernate.annotations.Where;

import com.fourdage.base.entity.BaseEntity;

/**
 * <p>
 * 钉钉部门
 * </p>
 *
 * @author ajay peng
 * @since 2018-11-20
 */
@Entity
@Table(name = "tb_department")
@Where(clause = "rec_status='A'")
public class Department extends BaseEntity{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3191811728219623858L;
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "id", nullable = false)
	private Integer id;
	
	private String deptId;
	
	private String deptName;
	
	private String region;
	
	private String parentId;
	
	@Column(length = 2)
	private String recStatus;

	public Integer getId() {
		return id;
	}

	public String getDeptId() {
		return deptId;
	}

	public String getDeptName() {
		return deptName;
	}

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

	public void setDeptId(String deptId) {
		this.deptId = deptId;
	}

	public void setDeptName(String deptName) {
		this.deptName = deptName;
	}

	public String getRegion() {
		return region;
	}

	public void setRegion(String region) {
		this.region = region;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getRecStatus() {
		return recStatus;
	}

	public void setRecStatus(String recStatus) {
		this.recStatus = recStatus;
	}
}
