| | |
| | | import org.springblade.common.node.TreeNode; |
| | | import org.springblade.core.mp.support.Condition; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.doorplateAddress.entity.DoorplateAddressEntity; |
| | | import org.springblade.modules.doorplateAddress.service.IDoorplateAddressService; |
| | | import org.springblade.modules.grid.service.IGridService; |
| | | import org.springblade.modules.place.entity.PlaceEntity; |
| | | import org.springblade.modules.place.entity.PlaceExtEntity; |
| | | import org.springblade.modules.place.entity.PlacePoiLabel; |
| | |
| | | |
| | | @Autowired |
| | | private IPlaceExtService placeExtService; |
| | | |
| | | @Autowired |
| | | private IDoorplateAddressService doorplateAddressService; |
| | | |
| | | @Autowired |
| | | private IGridService gridService; |
| | | |
| | | @Override |
| | | public IPage<PlaceVO> selectPlacePage(IPage<PlaceVO> page, PlaceVO place) { |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 场所表 自定义详情查询 |
| | | * @param place |
| | | * @return |
| | | */ |
| | | @Override |
| | | public PlaceVO getDetail(PlaceEntity place) { |
| | | // 查询场所信息 |
| | | PlaceVO placeVO = baseMapper.getDetail(place); |
| | | if (null!= placeVO) { |
| | | if (null != placeVO.getHouseCode() && !placeVO.getHouseCode().equals("")){ |
| | | place.setHouseCode(placeVO.getHouseCode()); |
| | | } |
| | | // 查询门牌地址信息 |
| | | if (null != place.getHouseCode() && !place.getHouseCode().equals("")) { |
| | | QueryWrapper<DoorplateAddressEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("address_code", place.getHouseCode()); |
| | | List<DoorplateAddressEntity> list = doorplateAddressService.list(wrapper); |
| | | if (list.size() > 0) { |
| | | placeVO.setDoorplateAddressEntity(list.get(0)); |
| | | } |
| | | // 查询网格数据 |
| | | placeVO.setGrid(gridService.getGridDetailByHouseCode(place.getHouseCode())); |
| | | }else { |
| | | // 通过定位点落面分析网格位置,反向推出社区派出所相关数据 |
| | | } |
| | | } |
| | | // 返回 |
| | | return placeVO; |
| | | } |
| | | } |