From 23a38c2da5b3263666ffc7414898a431341524d8 Mon Sep 17 00:00:00 2001 From: tianwenbo Date: Mon, 6 Mar 2023 16:39:42 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90fix=20sonar=E3=80=91=20SysCategory.jav?= =?UTF-8?q?a=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/jero/modules/system/entity/SysCategory.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java index 158a7996..8a8267a9 100644 --- a/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java +++ b/jero-boot/jero-boot-module-system/src/main/java/com/jero/modules/system/entity/SysCategory.java @@ -20,7 +20,7 @@ import java.io.Serializable; @TableName("sys_category") public class SysCategory implements Serializable,Comparable{ private static final long serialVersionUID = 1L; - + /**主键*/ @TableId(type = IdType.ASSIGN_ID) private java.lang.String id; @@ -56,8 +56,8 @@ public class SysCategory implements Serializable,Comparable{ // <0:当前对象比传入对象小。 // =0:当前对象等于传入对象。 // >0:当前对象比传入对象大。 - int s = this.code.length() - o.code.length(); - return s; +// int s = this.code.length() - o.code.length(); + return this.code.length() - o.code.length(); } @Override public String toString() {