| | |
| | | package com.panzhihua.service_community.service.impl; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.community.ComMngStructAreaCityVO; |
| | |
| | | import com.panzhihua.service_community.dao.ComMngStructAreaDistrictDAO; |
| | | import com.panzhihua.service_community.model.dos.ComMngStructAreaDistrictDO; |
| | | import com.panzhihua.service_community.service.ComMngStructAreaDistrictService; |
| | | import org.springframework.beans.BeanUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @program: springcloud_k8s_panzhihuazhihuishequ |
| | |
| | | /** |
| | | * 查询城市下属所有地区列表 |
| | | * |
| | | * @param cityAdcode 城市地址编码 |
| | | * @param cityAdcode |
| | | * 城市地址编码 |
| | | * @return 地区列表 |
| | | */ |
| | | @Override |
| | |
| | | comMngStructAreaCityVO.setId(256); |
| | | comMngStructAreaCityVO.setProvinceAdcode(510000); |
| | | comMngStructAreaCityVO.setProvinceId(23); |
| | | List<ComMngStructAreaDistrictDO> comMngStructAreaDistrictDOS = comMngStructAreaDistrictDAO.selectList(new QueryWrapper<ComMngStructAreaDistrictDO>().lambda().eq(ComMngStructAreaDistrictDO::getCityAdcode, cityAdcode)); |
| | | List<ComMngStructAreaDistrictDO> comMngStructAreaDistrictDOS = |
| | | comMngStructAreaDistrictDAO.selectList(new QueryWrapper<ComMngStructAreaDistrictDO>().lambda() |
| | | .eq(ComMngStructAreaDistrictDO::getCityAdcode, cityAdcode)); |
| | | List<ComMngStructAreaDistrictVO>comMngStructAreaDistrictVOS=new ArrayList<>(); |
| | | if (!ObjectUtils.isEmpty(comMngStructAreaDistrictDOS)) { |
| | | comMngStructAreaDistrictDOS.forEach(comMngStructAreaDistrictDO -> { |
| | |
| | | comMngStructAreaProvinceVOS.add(comMngStructAreaProvinceVO); |
| | | return R.ok(comMngStructAreaDistrictVOS); |
| | | } |
| | | |
| | | |
| | | } |