【fix sonar】 SysCategory.java文件
This commit is contained in:
+3
-3
@@ -20,7 +20,7 @@ import java.io.Serializable;
|
||||
@TableName("sys_category")
|
||||
public class SysCategory implements Serializable,Comparable<SysCategory>{
|
||||
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<SysCategory>{
|
||||
// <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() {
|
||||
|
||||
Reference in New Issue
Block a user