| | |
| | | package org.jeecg.modules.system.model; |
| | | |
| | | import org.jeecg.common.api.vo.ScopedSlots; |
| | | import org.jeecg.modules.system.entity.SysDepart; |
| | | |
| | | import java.io.Serializable; |
| | |
| | | * <p> |
| | | * 部门表 存储树结构数据的实体类 |
| | | * <p> |
| | | * |
| | | * |
| | | * @Author Steve |
| | | * @Since 2019-01-22 |
| | | * @Since 2019-01-22 |
| | | */ |
| | | public class SysDepartTreeModel implements Serializable{ |
| | | |
| | | |
| | | private static final long serialVersionUID = 1L; |
| | | |
| | | |
| | | /** 对应SysDepart中的id字段,前端数据树中的key*/ |
| | | private String key; |
| | | |
| | |
| | | |
| | | private boolean isLeaf; |
| | | // 以下所有字段均与SysDepart相同 |
| | | |
| | | |
| | | private String id; |
| | | |
| | | private String parentId; |
| | |
| | | private Integer departOrder; |
| | | |
| | | private String description; |
| | | |
| | | |
| | | private String orgCategory; |
| | | |
| | | private String orgType; |
| | |
| | | /**部门负责人ids*/ |
| | | private String directorUserIds; |
| | | //update-end---author:wangshuai ---date:20200308 for:[JTC-119]在部门管理菜单下设置部门负责人,新增字段部门负责人ids |
| | | |
| | | |
| | | private List<SysDepartTreeModel> children = new ArrayList<>(); |
| | | |
| | | private ScopedSlots scopedSlots = new ScopedSlots(); |
| | | |
| | | private SysDepart entity; |
| | | /** |
| | | * 将SysDepart对象转换成SysDepartTreeModel对象 |
| | | * @param sysDepart |
| | |
| | | this.directorUserIds = sysDepart.getDirectorUserIds(); |
| | | this.useDepartNum = sysDepart.getUseDepartNum(); |
| | | this.repairDepartNum = sysDepart.getRepairDepartNum(); |
| | | this.entity = sysDepart; |
| | | } |
| | | |
| | | public boolean getIsLeaf() { |
| | |
| | | public void setDepartName(String departName) { |
| | | this.departName = departName; |
| | | } |
| | | |
| | | |
| | | public String getOrgCategory() { |
| | | return orgCategory; |
| | | } |
| | |
| | | this.repairDepartNum = repairDepartNum; |
| | | } |
| | | |
| | | public ScopedSlots getScopedSlots(){return scopedSlots;} |
| | | |
| | | public void setScopedSlots(ScopedSlots scopedSlots){this.scopedSlots = scopedSlots;} |
| | | |
| | | public SysDepart getEntity(){return entity;} |
| | | |
| | | public void setEntity(SysDepart entity){this.entity = entity;} |
| | | |
| | | |
| | | |
| | | /** |
| | | * 重写equals方法 |
| | | */ |
| | |
| | | Objects.equals(repairDepartNum, model.repairDepartNum) && |
| | | Objects.equals(children, model.children); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 重写hashCode方法 |
| | | */ |
| | |
| | | public int hashCode() { |
| | | |
| | | return Objects.hash(id, parentId, departName, departNameEn, departNameAbbr, |
| | | departOrder, description, orgCategory, orgType, orgCode, mobile, fax, address, |
| | | departOrder, description, orgCategory, orgType, orgCode, mobile, fax, address, |
| | | memo, status, delFlag, qywxIdentifier, createBy, createTime, updateBy, updateTime, |
| | | children,directorUserIds,useDepartNum,repairDepartNum); |
| | | } |