|
|
@@ -51,7 +51,8 @@ public class MatterManage { |
|
|
|
|
|
|
|
private List<TreeVO> generateWindows(NdKqZzsfwMenu menu, List<NdKqZzsfwMenu> matters) { |
|
|
|
Set<String> windowSet = new HashSet<>(); |
|
|
|
return matters.stream().filter(m -> windowSet.add(m.getWindow()) && StringUtils.isNotBlank(m.getZoneName()) && m.getZoneName().equals(menu.getZoneName())) |
|
|
|
return matters.stream().filter(m -> StringUtils.isNotBlank(m.getZoneName()) && m.getZoneName().equals(menu.getZoneName()) |
|
|
|
&& windowSet.add(m.getWindow())) |
|
|
|
.map(m -> { |
|
|
|
TreeVO window = new TreeVO(); |
|
|
|
window.setName(m.getWindow()); |
|
|
@@ -63,7 +64,8 @@ public class MatterManage { |
|
|
|
|
|
|
|
private List<TreeVO> generateDepartment(NdKqZzsfwMenu menu, List<NdKqZzsfwMenu> matters) { |
|
|
|
Set<String> departmentSet = new HashSet<>(); |
|
|
|
return matters.stream().filter(m -> departmentSet.add(m.getDepartment()) && StringUtils.isNotBlank(m.getWindow()) && m.getWindow().equals(menu.getWindow())) |
|
|
|
return matters.stream().filter( m -> StringUtils.isNotBlank(m.getWindow()) && m.getWindow().equals(menu.getWindow()) && |
|
|
|
m.getZoneName().equals(menu.getZoneName()) && departmentSet.add(m.getDepartment())) |
|
|
|
.map(m -> { |
|
|
|
TreeVO department = new TreeVO(); |
|
|
|
department.setName(m.getDepartment()); |
|
|
@@ -74,7 +76,9 @@ public class MatterManage { |
|
|
|
} |
|
|
|
|
|
|
|
private List<TreeVO> generateMatters(NdKqZzsfwMenu menu, List<NdKqZzsfwMenu> matters) { |
|
|
|
return matters.stream().filter(m -> StringUtils.isNotBlank(m.getDepartment()) && m.getDepartment().equals(menu.getDepartment())) |
|
|
|
return matters.stream().filter(m -> StringUtils.isNotBlank(m.getDepartment()) && |
|
|
|
m.getDepartment().equals(menu.getDepartment()) && m.getWindow().equals(menu.getWindow()) && |
|
|
|
m.getZoneName().equals(menu.getZoneName())) |
|
|
|
.map(m -> { |
|
|
|
TreeVO matter = new TreeVO(); |
|
|
|
matter.setName(m.getItemName()); |
|
|
|