조사원 전체 검색 수정
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user