【fix sonar】FindsDepartsChildrenUtil文件
This commit is contained in:
-4
@@ -28,7 +28,6 @@ public class FindsDepartsChildrenUtil {
|
||||
*/
|
||||
public static List<SysDepartTreeModel> wrapTreeDataToTreeList(List<SysDepart> recordList) {
|
||||
// 在该方法每请求一次,都要对全局list集合进行一次清理
|
||||
//idList.clear();
|
||||
List<DepartIdModel> idList = new ArrayList<>();
|
||||
List<SysDepartTreeModel> records = new ArrayList<>();
|
||||
for (int i = 0; i < recordList.size(); i++) {
|
||||
@@ -50,7 +49,6 @@ public class FindsDepartsChildrenUtil {
|
||||
*/
|
||||
public static List<DepartIdModel> wrapTreeDataToDepartIdTreeList(List<SysDepart> recordList) {
|
||||
// 在该方法每请求一次,都要对全局list集合进行一次清理
|
||||
//idList.clear();
|
||||
List<DepartIdModel> idList = new ArrayList<>();
|
||||
List<SysDepartTreeModel> records = new ArrayList<>();
|
||||
for (int i = 0; i < recordList.size(); i++) {
|
||||
@@ -83,7 +81,6 @@ public class FindsDepartsChildrenUtil {
|
||||
}
|
||||
getGrandChildren(treeList,recordList,departIdList);
|
||||
|
||||
//idList = departIdList;
|
||||
return treeList;
|
||||
}
|
||||
|
||||
@@ -127,7 +124,6 @@ public class FindsDepartsChildrenUtil {
|
||||
model.setIsLeaf(false);
|
||||
}
|
||||
}
|
||||
// sysDepartTreeList = treeList;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user