| | |
| | | long count = firmInfoService.count(); |
| | | // 设置企业数量 |
| | | indParkInfoVO.setFirmNum((int) count); |
| | | // 设置行政区划 |
| | | setRegionInfo(indParkInfoVO); |
| | | // 返回 |
| | | return indParkInfoVO; |
| | | } |
| | | |
| | | /** |
| | | * 设置行政区划 |
| | | * @param indParkInfoVO |
| | | */ |
| | | private void setRegionInfo(IndParkInfoVO indParkInfoVO) { |
| | | QueryWrapper<Region> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("ancestors","000000000000,"+indParkInfoVO.getAreaCode()); |
| | | List<Region> list = regionService.list(wrapper); |
| | | if (list.size()>0){ |
| | | Region region = list.get(0); |
| | | indParkInfoVO.setRegionName(region.getProvinceName()+"-"+region.getCityName()); |
| | | } |
| | | } |
| | | } |