【fix sonar】SysDepartTreeModel文件

This commit is contained in:
梁琦涛
2023-03-03 14:52:42 +08:00
parent 2ddf740e49
commit e884e950ef
@@ -10,14 +10,14 @@ import java.util.Objects;
* <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;
@@ -30,7 +30,7 @@ public class SysDepartTreeModel implements Serializable{
private boolean isLeaf;
// 以下所有字段均与SysDepart相同
private String id;
private String parentId;
@@ -44,7 +44,7 @@ public class SysDepartTreeModel implements Serializable{
private Integer departOrder;
private String description;
private String orgCategory;
private String orgType;
@@ -151,7 +151,7 @@ public class SysDepartTreeModel implements Serializable{
public void setDepartName(String departName) {
this.departName = departName;
}
public String getOrgCategory() {
return orgCategory;
}
@@ -288,7 +288,9 @@ public class SysDepartTreeModel implements Serializable{
this.updateTime = updateTime;
}
public SysDepartTreeModel() { }
public SysDepartTreeModel() {
// do other
}
/**
* 重写equals方法
@@ -324,7 +326,7 @@ public class SysDepartTreeModel implements Serializable{
Objects.equals(updateTime, model.updateTime) &&
Objects.equals(children, model.children);
}
/**
* 重写hashCode方法
*/
@@ -332,8 +334,8 @@ public class SysDepartTreeModel implements Serializable{
public int hashCode() {
return Objects.hash(id, parentId, departName, departNameEn, departNameAbbr,
departOrder, description, orgCategory, orgType, orgCode, mobile, fax, address,
memo, status, delFlag, createBy, createTime, updateBy, updateTime,
departOrder, description, orgCategory, orgType, orgCode, mobile, fax, address,
memo, status, delFlag, createBy, createTime, updateBy, updateTime,
children);
}