| | |
| | | // 查询场所信息 |
| | | PlaceVO placeVO = baseMapper.getDetail(place); |
| | | // 门牌信息 |
| | | if (null!= place.getAddressType() && place.getAddressType()==4){ |
| | | if (null != placeVO) { |
| | | if (null != placeVO) { |
| | | if (null != place.getAddressType() && place.getAddressType() == 4) { |
| | | // 查询地址编码信息(社区派出所相关信息) |
| | | DoorplateAddressEntity addressEntity = placeRelService.getDoorplateAddressEntity(placeVO); |
| | | placeVO.setDoorplateAddressEntity(addressEntity); |
| | | // 查询网格信息--商超 |
| | | placeVO.setGrid(gridService.getGridDetailByParam(placeVO)); |
| | | } |
| | | }else { |
| | | // 管理后台查询赋值颜色 |
| | | if (placeVO.getPlacePoiLabelVOList().size()>0){ |
| | | PlacePoiLabelVO placePoiLabelVO = placeVO.getPlacePoiLabelVOList().get(0); |
| | | if (!Strings.isBlank(placePoiLabelVO.getColor())){ |
| | | placeVO.setColor(placePoiLabelVO.getColor()); |
| | | } else { |
| | | // 管理后台查询赋值颜色 |
| | | if (placeVO.getPlacePoiLabelVOList().size() > 0) { |
| | | PlacePoiLabelVO placePoiLabelVO = placeVO.getPlacePoiLabelVOList().get(0); |
| | | if (!Strings.isBlank(placePoiLabelVO.getColor())) { |
| | | placeVO.setColor(placePoiLabelVO.getColor()); |
| | | } |
| | | } |
| | | // 查询地址门牌信息 |
| | | QueryWrapper<DoorplateAddressEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("address_code", placeVO.getHouseCode()); |
| | | List<DoorplateAddressEntity> list = doorplateAddressService.list(wrapper); |
| | | if (list.size() > 0) { |
| | | placeVO.setDoorplateAddressEntity(list.get(0)); |
| | | placeVO.setNeiCode(list.get(0).getNeiCode()); |
| | | } |
| | | // 查询场所对应的网格数据 |
| | | placeVO.setGrid(gridService.getPlaceGridDetailByHouseCode(placeVO.getHouseCode())); |
| | | // 设置详情信息 |
| | | QueryWrapper<PlaceExtEntity> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("is_deleted", 0).eq("place_id", placeVO.getId()); |
| | | placeVO.setPlaceExtEntity(placeExtService.getOne(queryWrapper)); |
| | | } |
| | | // 查询地址门牌信息 |
| | | QueryWrapper<DoorplateAddressEntity> wrapper = new QueryWrapper<>(); |
| | | wrapper.eq("address_code", placeVO.getHouseCode()); |
| | | List<DoorplateAddressEntity> list = doorplateAddressService.list(wrapper); |
| | | if (list.size() > 0) { |
| | | placeVO.setDoorplateAddressEntity(list.get(0)); |
| | | placeVO.setNeiCode(list.get(0).getNeiCode()); |
| | | } |
| | | // 查询场所对应的网格数据 |
| | | placeVO.setGrid(gridService.getPlaceGridDetailByHouseCode(placeVO.getHouseCode())); |
| | | // 设置详情信息 |
| | | QueryWrapper<PlaceExtEntity> queryWrapper = new QueryWrapper<>(); |
| | | queryWrapper.eq("is_deleted",0).eq("place_id",placeVO.getId()); |
| | | placeVO.setPlaceExtEntity(placeExtService.getOne(queryWrapper)); |
| | | } |
| | | // 返回 |
| | | return placeVO; |