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