From c1e48a47b39dbd6919bfd9cf2e7023e9f3d6fee8 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期五, 05 十一月 2021 10:24:21 +0800 Subject: [PATCH] 1105测试代码修改 --- springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationHouseServiceImpl.java | 17 ++++++++--------- 1 files changed, 8 insertions(+), 9 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationHouseServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationHouseServiceImpl.java index 9d56dfc..a1ce6e8 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationHouseServiceImpl.java +++ b/springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComMngPopulationHouseServiceImpl.java @@ -99,9 +99,8 @@ cascadeHouseVOList = this.baseMapper.getHouseLevelByAlley(cascadeHouseDTO.getCommunityId(), cascadeHouseDTO.getVillageId()); cascadeHouseVOList = cascadeHouseVOList.stream() - .collect(Collectors.collectingAndThen( - Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(o -> o.getAlley()))), - ArrayList::new)); + .collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>( + Comparator.comparing(ComMngCascadeHouseVO::getAlley))),ArrayList::new)); cascadeHouseVOList.forEach(cascade -> { cascade.setName(cascade.getAlley()); }); @@ -435,8 +434,8 @@ // subordinateList = // subordinateList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new // TreeSet<>(Comparator.comparing(o -> o.getFloor()))), ArrayList::new)); - subordinateList = subordinateList.stream().filter(distinctByKey(ComMngSubordinateVO::getFloor)) - .collect(Collectors.toList()); +// subordinateList = subordinateList.stream().filter(distinctByKey(ComMngSubordinateVO::getFloor)) +// .collect(Collectors.toList()); subordinateList.forEach(cascade -> { if (cascade.getFloor().contains("栋")) { cascade.setName(cascade.getFloor()); @@ -449,8 +448,8 @@ if (houseDO != null) { subordinateList = this.baseMapper.getHouseLevelByUnitNos(houseDO.getVillageId(), houseDO.getFloor()); - subordinateList = subordinateList.stream().filter(distinctByKey(ComMngSubordinateVO::getUnitNo)) - .collect(Collectors.toList()); +// subordinateList = subordinateList.stream().filter(distinctByKey(ComMngSubordinateVO::getUnitNo)) +// .collect(Collectors.toList()); // subordinateList = // subordinateList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new // TreeSet<>(Comparator.comparing(o -> o.getUnitNo()))), ArrayList::new)); @@ -467,8 +466,8 @@ if (houseDO != null) { subordinateList = this.baseMapper.getHouseLevelByHouseNos(houseDO.getVillageId(), houseDO.getFloor(), houseDO.getUnitNo()); - subordinateList = subordinateList.stream().filter(distinctByKey(ComMngSubordinateVO::getHouseNo)) - .collect(Collectors.toList()); +// subordinateList = subordinateList.stream().filter(distinctByKey(ComMngSubordinateVO::getHouseNo)) +// .collect(Collectors.toList()); // subordinateList = // subordinateList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new // TreeSet<>(Comparator.comparing(o -> o.getHouseNo()))), ArrayList::new)); -- Gitblit v1.7.1