| | |
| | | } |
| | | |
| | | @Override |
| | | public Map<String, String> appendOwnerName(List<String> houseIds) { |
| | | Map<String, String> stringMap = new HashMap<>(); |
| | | |
| | | LambdaQueryWrapper<StateHouseholdOwner> stateHouseholdOwnerLambdaQueryWrapper = new LambdaQueryWrapper<>(); |
| | | stateHouseholdOwnerLambdaQueryWrapper.in(StateHouseholdOwner::getStateHouseholdId, houseIds.stream() |
| | | .distinct().collect(Collectors.toList())); |
| | | List<StateHouseholdOwner> stateHouseholdOwners = this.list(stateHouseholdOwnerLambdaQueryWrapper); |
| | | if (CollectionUtils.isEmpty(stateHouseholdOwners)) { |
| | | return stringMap; |
| | | } |
| | | Map<String, List<StateHouseholdOwner>> listMap = stateHouseholdOwners.stream() |
| | | .collect(Collectors.groupingBy(StateHouseholdOwner::getStateHouseholdId)); |
| | | |
| | | for (String houseId : houseIds) { |
| | | String fullName = getFullName(listMap.get(houseId)); |
| | | stringMap.put(houseId, fullName); |
| | | } |
| | | return stringMap; |
| | | } |
| | | |
| | | @Override |
| | | public List<StateProjectCompensateStandard> getCalculateCompensation(String projectId) { |
| | | StateProjectCompensation compensation = stateProjectCompensationService.getById(projectId); |
| | | if (Objects.isNull(compensation)) { |