From e884e950efc3d65776e66a4e44d6a27a7465e3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=90=A6=E6=B6=9B?= Date: Fri, 3 Mar 2023 14:52:42 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20sonar=E3=80=91SysDepartTreeModel?= =?UTF-8?q?=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/system/vo/SysDepartTreeModel.java | 24 ++++++++++--------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/system/vo/SysDepartTreeModel.java b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/system/vo/SysDepartTreeModel.java index 63f30352..1997cfbd 100644 --- a/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/system/vo/SysDepartTreeModel.java +++ b/jero-boot/jero-boot-base/jero-boot-base-core/src/main/java/com/jero/common/system/vo/SysDepartTreeModel.java @@ -10,14 +10,14 @@ import java.util.Objects; *

* 部门表 存储树结构数据的实体类 *

- * + * * @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); }