【fix sonar】SysDepartTreeModel文件
This commit is contained in:
+13
-11
@@ -10,14 +10,14 @@ import java.util.Objects;
|
|||||||
* <p>
|
* <p>
|
||||||
* 部门表 存储树结构数据的实体类
|
* 部门表 存储树结构数据的实体类
|
||||||
* <p>
|
* <p>
|
||||||
*
|
*
|
||||||
* @Author Steve
|
* @Author Steve
|
||||||
* @Since 2019-01-22
|
* @Since 2019-01-22
|
||||||
*/
|
*/
|
||||||
public class SysDepartTreeModel implements Serializable{
|
public class SysDepartTreeModel implements Serializable{
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/** 对应SysDepart中的id字段,前端数据树中的key*/
|
/** 对应SysDepart中的id字段,前端数据树中的key*/
|
||||||
private String key;
|
private String key;
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ public class SysDepartTreeModel implements Serializable{
|
|||||||
|
|
||||||
private boolean isLeaf;
|
private boolean isLeaf;
|
||||||
// 以下所有字段均与SysDepart相同
|
// 以下所有字段均与SysDepart相同
|
||||||
|
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
private String parentId;
|
private String parentId;
|
||||||
@@ -44,7 +44,7 @@ public class SysDepartTreeModel implements Serializable{
|
|||||||
private Integer departOrder;
|
private Integer departOrder;
|
||||||
|
|
||||||
private String description;
|
private String description;
|
||||||
|
|
||||||
private String orgCategory;
|
private String orgCategory;
|
||||||
|
|
||||||
private String orgType;
|
private String orgType;
|
||||||
@@ -151,7 +151,7 @@ public class SysDepartTreeModel implements Serializable{
|
|||||||
public void setDepartName(String departName) {
|
public void setDepartName(String departName) {
|
||||||
this.departName = departName;
|
this.departName = departName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getOrgCategory() {
|
public String getOrgCategory() {
|
||||||
return orgCategory;
|
return orgCategory;
|
||||||
}
|
}
|
||||||
@@ -288,7 +288,9 @@ public class SysDepartTreeModel implements Serializable{
|
|||||||
this.updateTime = updateTime;
|
this.updateTime = updateTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
public SysDepartTreeModel() { }
|
public SysDepartTreeModel() {
|
||||||
|
// do other
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重写equals方法
|
* 重写equals方法
|
||||||
@@ -324,7 +326,7 @@ public class SysDepartTreeModel implements Serializable{
|
|||||||
Objects.equals(updateTime, model.updateTime) &&
|
Objects.equals(updateTime, model.updateTime) &&
|
||||||
Objects.equals(children, model.children);
|
Objects.equals(children, model.children);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 重写hashCode方法
|
* 重写hashCode方法
|
||||||
*/
|
*/
|
||||||
@@ -332,8 +334,8 @@ public class SysDepartTreeModel implements Serializable{
|
|||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
|
|
||||||
return Objects.hash(id, parentId, departName, departNameEn, departNameAbbr,
|
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, createBy, createTime, updateBy, updateTime,
|
memo, status, delFlag, createBy, createTime, updateBy, updateTime,
|
||||||
children);
|
children);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user