zhongrj
2023-11-21 76d431070dbe0647c0470632b1b70becb357debd
src/main/java/org/springblade/modules/place/service/impl/PlaceServiceImpl.java
@@ -255,9 +255,18 @@
    * @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());
@@ -274,6 +283,8 @@
            placeVO.setGrid(gridService.getGridDetailByHouseCode(place.getHouseCode()));
         }else {
            // 通过定位点落面分析网格位置,反向推出社区派出所相关数据
            }
         }
      }
      // 返回