【fix sonar】DepartIdModel文件
This commit is contained in:
+7
-7
@@ -11,9 +11,9 @@ import com.jero.modules.system.entity.SysDepart;
|
|||||||
* <p>
|
* <p>
|
||||||
* 部门表 封装树结构的部门的名称的实体类
|
* 部门表 封装树结构的部门的名称的实体类
|
||||||
* <p>
|
* <p>
|
||||||
*
|
*
|
||||||
* @Author Steve
|
* @Author Steve
|
||||||
* @Since 2019-01-22
|
* @Since 2019-01-22
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class DepartIdModel implements Serializable {
|
public class DepartIdModel implements Serializable {
|
||||||
@@ -28,9 +28,9 @@ public class DepartIdModel implements Serializable {
|
|||||||
|
|
||||||
// 部门名称
|
// 部门名称
|
||||||
private String title;
|
private String title;
|
||||||
|
|
||||||
List<DepartIdModel> children = new ArrayList<>();
|
private List<DepartIdModel> children = new ArrayList<>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 将SysDepartTreeModel的部分数据放在该对象当中
|
* 将SysDepartTreeModel的部分数据放在该对象当中
|
||||||
* @param treeModel
|
* @param treeModel
|
||||||
@@ -42,7 +42,7 @@ public class DepartIdModel implements Serializable {
|
|||||||
this.title = treeModel.getDepartName();
|
this.title = treeModel.getDepartName();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 该方法为用户部门的实现类所使用
|
* 该方法为用户部门的实现类所使用
|
||||||
* @param sysDepart
|
* @param sysDepart
|
||||||
@@ -53,7 +53,7 @@ public class DepartIdModel implements Serializable {
|
|||||||
this.value = sysDepart.getId();
|
this.value = sysDepart.getId();
|
||||||
this.title = sysDepart.getDepartName();
|
this.title = sysDepart.getDepartName();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<DepartIdModel> getChildren() {
|
public List<DepartIdModel> getChildren() {
|
||||||
return children;
|
return children;
|
||||||
|
|||||||
Reference in New Issue
Block a user