조사원 전체 검색 수정
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>
|
||||
|
||||
Reference in New Issue
Block a user