package org.jeecg.modules.system.model;
|
|
import org.jeecg.modules.system.entity.SysDepart;
|
|
import java.io.Serializable;
|
import java.util.ArrayList;
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 部门用户树
|
* 部门
|
* 丨
|
* 用户
|
*/
|
public class DepartUserModel implements Serializable {
|
public static final Integer TYPE_DEPART = 1;
|
public static final Integer TYPE_USER = 2;
|
private String id;
|
private String key;
|
|
private String value;
|
|
private String title;
|
|
private Integer type; //树的类型 1-部门 2-用户
|
|
private boolean isLeaf;
|
|
|
private String parentId;
|
|
private String departId;
|
|
private String departName;
|
private String orgCode;
|
private Integer sort;
|
|
|
private Map<String,Object> scopedSlots;
|
|
|
|
public DepartUserModel() {
|
}
|
|
public DepartUserModel(SysDepart sysDepart) {
|
this.key = sysDepart.getId();
|
this.value = sysDepart.getId();
|
this.title = sysDepart.getDepartName();
|
this.id = sysDepart.getId();
|
this.parentId = sysDepart.getParentId();
|
this.departId = sysDepart.getId();
|
this.departName = sysDepart.getDepartName();
|
this.orgCode = sysDepart.getOrgCode();
|
this.sort = sysDepart.getDepartOrder();
|
|
}
|
|
public Integer getSort() {
|
return sort;
|
}
|
|
public void setSort(Integer sort) {
|
this.sort = sort;
|
}
|
|
public Map<String, Object> getScopedSlots() {
|
return scopedSlots;
|
}
|
|
public void setScopedSlots(Map<String, Object> scopedSlots) {
|
this.scopedSlots = scopedSlots;
|
}
|
|
public String getId() {
|
return id;
|
}
|
|
public void setId(String id) {
|
this.id = id;
|
}
|
|
public String getOrgCode() {
|
return orgCode;
|
}
|
|
public void setOrgCode(String orgCode) {
|
this.orgCode = orgCode;
|
}
|
|
private String username;
|
private String realname;
|
|
public boolean isLeaf() {
|
return isLeaf;
|
}
|
|
public void setLeaf(boolean leaf) {
|
isLeaf = leaf;
|
}
|
|
public String getParentId() {
|
return parentId;
|
}
|
|
public void setParentId(String parentId) {
|
this.parentId = parentId;
|
}
|
|
public String getDepartId() {
|
return departId;
|
}
|
|
public void setDepartId(String departId) {
|
this.departId = departId;
|
}
|
|
public String getDepartName() {
|
return departName;
|
}
|
|
public void setDepartName(String departName) {
|
this.departName = departName;
|
}
|
|
public String getUsername() {
|
return username;
|
}
|
|
public void setUsername(String username) {
|
this.username = username;
|
}
|
|
public String getRealname() {
|
return realname;
|
}
|
|
public void setRealname(String realname) {
|
this.realname = realname;
|
}
|
|
List<DepartUserModel> children = new ArrayList<>();
|
|
public String getKey() {
|
return key;
|
}
|
|
public void setKey(String key) {
|
this.key = key;
|
}
|
|
public String getValue() {
|
return value;
|
}
|
|
public void setValue(String value) {
|
this.value = value;
|
}
|
|
public String getTitle() {
|
return title;
|
}
|
|
public void setTitle(String title) {
|
this.title = title;
|
}
|
|
public Integer getType() {
|
return type;
|
}
|
|
public void setType(Integer type) {
|
this.type = type;
|
}
|
|
public List<DepartUserModel> getChildren() {
|
return children;
|
}
|
|
public void setChildren(List<DepartUserModel> children) {
|
this.children = children;
|
}
|
|
|
|
|
|
}
|