【fix sonar】 SysCategory.java文件
This commit is contained in:
+3
-3
@@ -20,7 +20,7 @@ import java.io.Serializable;
|
|||||||
@TableName("sys_category")
|
@TableName("sys_category")
|
||||||
public class SysCategory implements Serializable,Comparable<SysCategory>{
|
public class SysCategory implements Serializable,Comparable<SysCategory>{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
/**主键*/
|
/**主键*/
|
||||||
@TableId(type = IdType.ASSIGN_ID)
|
@TableId(type = IdType.ASSIGN_ID)
|
||||||
private java.lang.String id;
|
private java.lang.String id;
|
||||||
@@ -56,8 +56,8 @@ public class SysCategory implements Serializable,Comparable<SysCategory>{
|
|||||||
// <0:当前对象比传入对象小。
|
// <0:当前对象比传入对象小。
|
||||||
// =0:当前对象等于传入对象。
|
// =0:当前对象等于传入对象。
|
||||||
// >0:当前对象比传入对象大。
|
// >0:当前对象比传入对象大。
|
||||||
int s = this.code.length() - o.code.length();
|
// int s = this.code.length() - o.code.length();
|
||||||
return s;
|
return this.code.length() - o.code.length();
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
public String toString() {
|
public String toString() {
|
||||||
|
|||||||
Reference in New Issue
Block a user