| | |
| | | package com.panzhihua.service_community.service.impl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.Comparator; |
| | | import java.util.List; |
| | | import java.util.stream.Collectors; |
| | | |
| | |
| | | |
| | | import com.google.common.collect.Lists; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.community.switchs.CommunitySwitchAllAppletsVO; |
| | | import com.panzhihua.common.model.vos.community.switchs.StreetAllAppletsVO; |
| | | import com.panzhihua.service_community.dao.*; |
| | | import com.panzhihua.service_community.model.dos.ComStreetDO; |
| | | import org.springframework.beans.BeanUtils; |
| | |
| | | |
| | | @Resource |
| | | private ComStreetDAO comStreetDAO; |
| | | |
| | | |
| | | @Resource |
| | | private ComActDAO comActDAO; |
| | | |
| | | @Override |
| | | public R getProvince() { |
| | |
| | | ComMngAreaVO csd = new ComMngAreaVO(0, dos.getName(),dos.getStreetId()+""); |
| | | BeanUtils.copyProperties(dos, csd); |
| | | districtVo.getChildren().add(csd); |
| | | |
| | | // 查询街道下社区列表 |
| | | List<CommunitySwitchAllAppletsVO> communityList = comActDAO.getCommunityListByStreetId(dos.getStreetId()); |
| | | |
| | | communityList.forEach(csaa ->{ |
| | | ComMngAreaVO cssd = new ComMngAreaVO(0, csaa.getName(),csaa.getCommunityId()+""); |
| | | BeanUtils.copyProperties(csaa, cssd); |
| | | csd.getChildren().add(cssd); |
| | | |
| | | }); |
| | | }); |
| | | |
| | | |