| | |
| | | if (place.getRoleName().equals("网格员")){ |
| | | // 查询对应的房屋地址code |
| | | list = gridService.getAddressCodeListByUserId(AuthUtil.getUserId()); |
| | | place.setCreateUser(AuthUtil.getUserId()); |
| | | } |
| | | if (!place.getRoleName().equals("系统管理员")){ |
| | | place.setCreateUser(AuthUtil.getUserId()); |
| | | } |
| | | } |
| | | List<PlaceVO> placeVOS = baseMapper.selectPlacePage(page, place, list); |
| | |
| | | GridVO gridVO = gridService.getGridDetailByHouseCode(placeVO.getHouseCode()); |
| | | if (null!= gridVO){ |
| | | placeVO.setGridName(gridVO.getGridName()); |
| | | // placeVO.setNeiName(gridVO.getCommunityName()); |
| | | // placeVO.setTownStreetName(gridVO.getTownStreetName()); |
| | | } |
| | | } |
| | | // 返回 |
| | |
| | | } |
| | | return null; |
| | | } |
| | | |
| | | /** |
| | | * 商超数据处理 |
| | | * @return |
| | | */ |
| | | @Override |
| | | public Object placeAndRelHandle() { |
| | | // 查询未处理的商超数据 |
| | | List<PlaceEntity> placeEntityList = baseMapper.placeAndRelHandle(); |
| | | // 处理 |
| | | for (PlaceEntity placeEntity : placeEntityList) { |
| | | if (Strings.isBlank(placeEntity.getHouseCode())){ |
| | | // 并生成36位的houseCode |
| | | placeEntity.setHouseCode(IdUtils.getIdBy36()); |
| | | // 商超数据 |
| | | placeEntity.setSource(3); |
| | | // 更新 |
| | | updateById(placeEntity); |
| | | } |
| | | } |
| | | return null; |
| | | } |
| | | } |