| | |
| | | import org.springblade.common.param.CommonParamSet; |
| | | import org.springblade.common.utils.ComplexNumberStringComparator; |
| | | import org.springblade.common.utils.NodeTreeUtil; |
| | | import org.springblade.common.utils.SpringUtils; |
| | | import org.springblade.core.secure.utils.AuthUtil; |
| | | import org.springblade.modules.category.dto.CategoryDTO; |
| | | import org.springblade.modules.category.service.ICategoryService; |
| | |
| | | import org.springblade.modules.grid.service.IGridService; |
| | | import org.springblade.modules.grid.service.IGridmanService; |
| | | import org.springblade.modules.house.entity.HouseEntity; |
| | | import org.springblade.modules.house.entity.UserHouseLabelEntity; |
| | | import org.springblade.modules.house.service.IHouseRentalService; |
| | | import org.springblade.modules.house.service.IHouseService; |
| | | import org.springblade.modules.house.service.IHouseholdService; |
| | | import org.springblade.modules.house.service.IUserHouseLabelService; |
| | | import org.springblade.modules.house.vo.HouseParam; |
| | | import org.springblade.modules.house.vo.HouseRentalVO; |
| | | import org.springblade.modules.house.vo.HouseholdVO; |
| | |
| | | |
| | | /** |
| | | * 判断是否包含数字 |
| | | * |
| | | * @param str |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 取出字符串中的数字 |
| | | * |
| | | * @param str |
| | | * @return |
| | | */ |
| | |
| | | |
| | | /** |
| | | * 新增场所详情 |
| | | * |
| | | * @param placeEntity |
| | | */ |
| | | public void savePlaceExtAndTaskInfo(PlaceEntity placeEntity) { |
| | |
| | | public Object getDetail(DoorplateAddressVO doorplateAddress) { |
| | | List<String> list = new ArrayList<>(); |
| | | // 扫码时调用,需判断是否有权限查看 |
| | | DoorplateAddressVO one = baseMapper.getDoorplateAddressVODetail(doorplateAddress); |
| | | if (null != one) { |
| | | DoorplateAddressVO doorplateAddressVO = baseMapper.getDoorplateAddressVODetail(doorplateAddress); |
| | | if (null != doorplateAddressVO) { |
| | | // 不限制 |
| | | one.setIsJur(1); |
| | | doorplateAddressVO.setIsJur(1); |
| | | if (!Strings.isBlank(doorplateAddress.getRoleName())) { |
| | | // 判断是否有权限 |
| | | if (doorplateAddress.getRoleName().equals("网格员")) { |
| | |
| | | boolean contains = list.contains(doorplateAddress.getAddressCode()); |
| | | if (list.size() == 0 || !contains) { |
| | | // 无权限 |
| | | one.setIsJur(2); |
| | | doorplateAddressVO.setIsJur(2); |
| | | } else { |
| | | one.setIsJur(1); |
| | | doorplateAddressVO.setIsJur(1); |
| | | } |
| | | } else if (doorplateAddress.getRoleName().equals("民警")) { |
| | | // 无权限 |
| | | one.setIsJur(2); |
| | | doorplateAddressVO.setIsJur(2); |
| | | // 查询对应的社区code |
| | | list = policeAffairsGridService.getCommunityCodeListByUserId(AuthUtil.getUserId()); |
| | | if (null!=list && list.size()>0){ |
| | | boolean contains = list.contains(one.getNeiCode()); |
| | | boolean contains = list.contains(doorplateAddressVO.getNeiCode()); |
| | | if (contains) { |
| | | one.setIsJur(1); |
| | | doorplateAddressVO.setIsJur(1); |
| | | } |
| | | } |
| | | } else { |
| | | // 不限制 |
| | | one.setIsJur(1); |
| | | doorplateAddressVO.setIsJur(1); |
| | | } |
| | | } |
| | | return one; |
| | | if(doorplateAddressVO != null ){ |
| | | // 获取房屋标签 |
| | | IUserHouseLabelService userHouseLabelService = SpringUtils.getBean(IUserHouseLabelService.class); |
| | | List<UserHouseLabelEntity> houseLabelEntityList = userHouseLabelService.list(Wrappers.<UserHouseLabelEntity>lambdaQuery() |
| | | .eq(UserHouseLabelEntity::getHouseCode, doorplateAddressVO.getAddressCode()) |
| | | .eq(UserHouseLabelEntity::getLableType, 2)); |
| | | doorplateAddressVO.setUserHouseLabelVOList(houseLabelEntityList); |
| | | } |
| | | return doorplateAddressVO; |
| | | } |
| | | return null; |
| | | } |
| | |
| | | |
| | | /** |
| | | * 查询场所标准地址数据 |
| | | * |
| | | * @param doorplateAddress |
| | | * @param size |
| | | * @return |
| | |
| | | |
| | | /** |
| | | * 通过小区id 查询楼栋编码 |
| | | * |
| | | * @param districtId |
| | | * @return |
| | | */ |