| | |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PlaceVO getDetail(PlaceEntity place) { |
| | | public PlaceVO getDetail(PlaceVO place) { |
| | | // 查询场所信息 |
| | | PlaceVO placeVO = baseMapper.getDetail(place); |
| | | if (null!= place.getAddressType() && place.getAddressType()==4){ |
| | | if (null != placeVO) { |
| | | // 查询地址编码信息(社区派出所相关信息) |
| | | DoorplateAddressEntity addressEntity = placeRelService.getDoorplateAddressEntity(placeVO); |
| | | placeVO.setDoorplateAddressEntity(addressEntity); |
| | | // 查询网格信息 |
| | | placeVO.setGrid(gridService.getGridDetailByParam(placeVO)); |
| | | } |
| | | }else { |
| | | if (null!= placeVO) { |
| | | if (null != placeVO.getHouseCode() && !placeVO.getHouseCode().equals("")){ |
| | | place.setHouseCode(placeVO.getHouseCode()); |
| | |
| | | placeVO.setGrid(gridService.getGridDetailByHouseCode(place.getHouseCode())); |
| | | }else { |
| | | // 通过定位点落面分析网格位置,反向推出社区派出所相关数据 |
| | | |
| | | } |
| | | } |
| | | } |
| | | // 返回 |