package com.sifang.modules.sunshine.SystemSetting.entity;





import org.hibernate.annotations.GenericGenerator;
import org.springframework.format.annotation.DateTimeFormat;


import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * Generated by JFinal.
 */
@Entity
@Table(name = "crm_department")
public class CrmDepartment implements Serializable {


	public String id ;



	/**
	 * 部门名称
	 */
	public String name;


	/**
	 * 部门编码
	 */
	public String code;


	/**
	 * 上级部门
	 */
	public String parentId;


	/**
	 * 创建时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd")
	public Date createTime;


	public String createBy;


	/**
	 * 状态  1正常 2删除  默认为1
	 */
	public String status;


	/**
	 * 部门层级
	 */
	public Integer hierarchy;


	/****
	 *  前端显示部门
	 */
	public String frontDepartment;


	@Id
	public String getId() {
		return id;
	}

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

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

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

	public String getParentId() {
		return parentId;
	}

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

	public Date getCreateTime() {
		return createTime;
	}

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

	public String getCreateBy() {
		return createBy;
	}

	public void setCreateBy(String createBy) {
		this.createBy = createBy;
	}

	public String getStatus() {
		return status;
	}

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

	public Integer getHierarchy() {
		return hierarchy;
	}

	public void setHierarchy(Integer hierarchy) {
		this.hierarchy = hierarchy;
	}

	public String getFrontDepartment() {
		return frontDepartment;
	}

	public void setFrontDepartment(String frontDepartment) {
		this.frontDepartment = frontDepartment;
	}


}
