조사원현황 수정
This commit is contained in:
@@ -13,12 +13,12 @@
|
||||
max(u.code_text) AS region_main_code_name,
|
||||
case a.account_disabled when false then '사용' when true then '미사용' end account_disabled_flag
|
||||
from admin a
|
||||
join admin_has_role ahr ON a.seq = ahr.admin_seq
|
||||
join admin_has_role ahr ON a.seq = ahr.admin_seq and ahr.is_deleted = false
|
||||
left join uicode u ON u.parent_id = 'code.region.main' AND u.id = a.region_main_code
|
||||
left join researcher_has_household rhh ON rhh.admin_seq = a.seq
|
||||
left join household h ON h.seq = rhh.household_seq AND h.is_panel IS true
|
||||
left join researcher_has_household rhh ON rhh.admin_seq = a.seq and rhh.is_deleted = false
|
||||
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' and ahr.is_deleted = false
|
||||
ahr.role_id = 'ROLE_RESEARCHER'
|
||||
<if test="searchField == 'name' and searchValue != null and searchValue != ''">
|
||||
and a.name LIKE CONCAT('%', #{searchValue}, '%')
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user