| | |
| | | //要查自己家庭的 |
| | | ZInfoUser myself = zInfoUserService.getMyself(); |
| | | Long familyId = myself.getFamilyId(); |
| | | |
| | | //也要查别人授权的 |
| | | List<ZAuthority> authority = zAuthorityService.getAuthority(); |
| | | List<Long> idList = authority.stream().filter(auth -> auth.getAuthority().toString().equals(CONTACT_LIST)).map(ZAuthority::getFid).collect(Collectors.toList()); |
| | | //加上自己家庭的id |
| | | idList.add(familyId); |
| | | |
| | | LambdaQueryWrapper<ZfContact> lambdaQueryWrapper = buildCondition(zfContact, idList); |
| | | List<ZfContact> beanRecords = list(lambdaQueryWrapper); |
| | |
| | | } |
| | | Long familyId = myself.getFamilyId(); |
| | | //也要查别人授权的 |
| | | // |
| | | // System.out.println("--------------7777----------------"); |
| | | // |
| | | // System.out.println(familyId); |
| | | List<ZAuthority> authority = zAuthorityService.getAuthority(); |
| | | List<Long> idList = authority.stream().filter(auth -> auth.getAuthority().toString().equals(CONTACT_LIST)).map(ZAuthority::getFid).collect(Collectors.toList()); |
| | | //加上自己家庭的id |
| | | idList.add(familyId); |
| | | // |
| | | // System.out.println(idList.size()); |
| | | // System.out.println(idList.get(0)); |
| | | // |
| | | // System.out.println("------------------------------"); |
| | | idList.add(familyId); |
| | | |
| | | // String familyIds = listFamilyIds(); |
| | | // String secondFamilyAuthority = listSecondFamilyIds(); |
| | | LambdaQueryWrapper<ZfContact> lqw = buildCondition(zfContact, idList); |