package com.xzx.gc.entity;
|
|
|
import lombok.Data;
|
|
import java.util.Date;
|
|
|
/**
|
* 机构对象,
|
* 有母公司,一个系统只有一个母公司,多个集团,集团下可以有多个公司,子公司,部门。如果系统不符合这个设定,需要修改·
|
*
|
* <br/>
|
* 映射了上级机构,可以通过org.parentOrg.xxx取上级机构的属性
|
*/
|
@Data
|
public class CoreOrg {
|
|
// 自增id
|
private Long id;
|
|
//删除标识
|
private Integer delFlag= 0;
|
//创建时间
|
private Date createTime;
|
|
// 机构编号
|
private String code;
|
|
// 机构名称
|
private String name;
|
|
// 上层机构id
|
private Long parentOrgId;
|
|
// 机构类型 1 集团 2 公司,3 部门,4 小组
|
private String type;
|
private String typeText;
|
private String parentOrgText;
|
private String createTimeStr;
|
}
|