| | |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | */ |
| | | @Override |
| | | public R listArea(Long communityId) { |
| | | List<ComMngStructAreaVO> comMngStructAreaVOS=new ArrayList<>(); |
| | | List<ComMngStructAreaDO> comMngStructAreaDOS = comMngStructAreaDAO.selectList(new QueryWrapper<ComMngStructAreaDO>().lambda().eq(ComMngStructAreaDO::getCommunityId, communityId)); |
| | | return R.ok(comMngStructAreaDOS); |
| | | if (!ObjectUtils.isEmpty(comMngStructAreaDOS)) { |
| | | comMngStructAreaDOS.forEach(comMngStructAreaDO -> { |
| | | ComMngStructAreaVO comMngStructAreaVO=new ComMngStructAreaVO(); |
| | | BeanUtils.copyProperties(comMngStructAreaDO,comMngStructAreaVO); |
| | | comMngStructAreaVOS.add(comMngStructAreaVO); |
| | | }); |
| | | |
| | | } |
| | | return R.ok(comMngStructAreaVOS); |
| | | } |
| | | |
| | | |