조사원 전체 검색 수정

This commit is contained in:
주수현
2025-06-27 09:12:49 +09:00
parent 48fc15838e
commit d19d948cae
2 changed files with 6 additions and 1 deletions

View File

@@ -19,6 +19,9 @@
left join household h ON h.seq = rhh.household_seq AND h.is_panel IS true and h.is_deleted = false
where
ahr.role_id = 'ROLE_RESEARCHER'
<if test="searchField == '' and searchValue != null and searchValue != ''">
and ( a.name LIKE CONCAT('%', #{searchValue}, '%') or a.phone LIKE CONCAT('%', #{searchValue}, '%') )
</if>
<if test="searchField == 'name' and searchValue != null and searchValue != ''">
and a.name LIKE CONCAT('%', #{searchValue}, '%')
</if>

View File

@@ -25,7 +25,7 @@
</div>
<div class="component-input">
<div class="input-field">
<input type="text" id="temp_input_0001" th:field="*{searchValue}" placeholder="검색어를 입력하세요.">
<input type="text" id="temp_input_0001" th:field="*{searchValue}" placeholder="검색어를 입력하세요." onkeypress="if(event.key === 'Enter') goSearch();">
</div>
</div>
</div>
@@ -181,6 +181,8 @@
f.searchValue.value = '';
f.searchArea.value = '';
f.searchAccountDisabled.value = '';
f.method = 'GET';
f.submit();
}
// 상세페이지 이동
function goDetail(seq) {