springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/dao/ComActDAO.java
@@ -73,7 +73,7 @@ + "left join com_street as cs on cs.street_id = ca.street_id\n" + "where ca.community_id = ${communityId}") ComPopulationActVO getPopulationActById(@Param("communityId") Long communityId); @Select("select `name`,street_id from com_street order by area_code asc") @Select("select `name`,street_id from com_street where area_code = #{areaCode}") List<StreetAllAppletsVO> getStreetList(String areaCode); @Select("select ca.`name`,ca.street_id,ca.community_id,cs.`name` as streetName from com_act as ca left join com_street as cs on cs.street_id = ca.street_id where ca.state = 0 and ca.street_id = #{streetId}") springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/service/impl/ComActServiceImpl.java
@@ -243,8 +243,8 @@ street.setCount(communityList.size()); } }); // streetList = streetList.stream().sorted(Comparator.comparing(StreetAllAppletsVO::getCount).reversed()) // .collect(Collectors.toList()); streetList = streetList.stream().sorted(Comparator.comparing(StreetAllAppletsVO::getCount).reversed()) .collect(Collectors.toList()); return R.ok(streetList); }