Skip to content

Commit

Permalink
edit filter search in observation
Browse files Browse the repository at this point in the history
  • Loading branch information
gyulchyoung committed Oct 26, 2021
1 parent a883a62 commit 61b788d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -132,7 +132,7 @@ public List<SearchParams1> getObservationWithFilter(Filter filter, String search
searchResult = observationRepository.findByObservationNameContainingOrOutlineContaining(searchKey, searchKey);
keyResult = observationRepository.findByObservationNameContainingOrOutlineContaining(searchKey, searchKey);

if (!hashTagIdList.isEmpty()||!areaCodeList.isEmpty()) {
if (!hashTagIdList.isEmpty() || !areaCodeList.isEmpty()) {
//필터 받은게 없으면 그냥 검색결과 전달, 있으면 중첩 검색
for (Observation observation : keyResult) {
//전체 검색어 결과 돌면서
@@ -142,6 +142,9 @@ public List<SearchParams1> getObservationWithFilter(Filter filter, String search
}
}
}
} else {
for(Long p : filterIdList)
searchResult.add(getObservation(p));
}


0 comments on commit 61b788d

Please sign in to comment.