fix subCategories
This commit is contained in:
parent
c906fcab5b
commit
0682d3b3bc
1 changed files with 7 additions and 7 deletions
|
@ -26,8 +26,10 @@ import java.io.IOException;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.HashMap;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
public class AmenityIndexRepositoryBinary implements AmenityIndexRepository {
|
||||
|
||||
|
@ -82,14 +84,12 @@ public class AmenityIndexRepositoryBinary implements AmenityIndexRepository {
|
|||
|
||||
PoiCategory poiCategory = poiTypes.getPoiCategoryByName(categoryName);
|
||||
List<String> deltaSubCategories = null;
|
||||
for (List<String> subList : subCategories) {
|
||||
for (String subCategory : subList) {
|
||||
if (poiCategory.getPoiTypeByKeyName(subCategory) != null) {
|
||||
if (deltaSubCategories == null) {
|
||||
deltaSubCategories = new ArrayList<>();
|
||||
}
|
||||
deltaSubCategories.add(subCategory);
|
||||
for (String subCategory : subCategories.get(i)) {
|
||||
if (poiCategory.getPoiTypeByKeyName(subCategory) == null) {
|
||||
if (deltaSubCategories == null) {
|
||||
deltaSubCategories = new ArrayList<>();
|
||||
}
|
||||
deltaSubCategories.add(subCategory);
|
||||
}
|
||||
}
|
||||
if (deltaSubCategories != null) {
|
||||
|
|
Loading…
Reference in a new issue