임가방문 목록 수정

This commit is contained in:
주수현
2025-06-14 13:51:08 +09:00
parent eccbf2a6e7
commit 13f0ca7bc8
6 changed files with 28 additions and 20 deletions

View File

@@ -51,6 +51,7 @@
<select id="detail">
select
a.seq,
a.id,
a.name,
a.phone,
@@ -69,7 +70,7 @@
select
h.seq,
h.household_num,
h.name,
h.owner_name,
h.phone,
rm.code_text AS region_main_code_name,
rs.code_text AS region_sub_code_name,
@@ -79,11 +80,11 @@
case h.is_panel when false then '유지' when true then '탈락' end panel_flag
from household h
join admin_has_role ahr ON h.seq = ahr.admin_seq
left join uicode rm ON u.parent_id = 'code.region.main' AND u.id = h.region_main_code
left join uicode rs ON u.parent_id = 'code.region.sub' AND u.id = h.region_sub_code
left join uicode rd ON u.parent_id = 'code.region.detail' AND u.id = h.region_detail_code
left join uicode il ON u.parent_id = 'code.industry.large' AND u.id = h.industry_large_code
left join uicode im ON u.parent_id = 'code.industry.middle' AND u.id = h.industry_middle_code
left join uicode rm ON rm.parent_id = 'code.region.main' AND rm.id = h.region_main_code
left join uicode rs ON rs.parent_id = 'code.region.sub' AND rs.id = h.region_sub_code
left join uicode rd ON rd.parent_id = 'code.region.detail' AND rd.id = h.region_detail_code
left join uicode il ON il.parent_id = 'code.industry.large' AND il.id = h.industry_large_code
left join uicode im ON im.parent_id = 'code.industry.middle' AND im.id = h.industry_middle_code
where ahr.role_id = 'ROLE_RESEARCHER' and ahr.is_deleted = false
<if test="adminSeq > 0">
and a.seq = #{adminSeq}
@@ -109,7 +110,7 @@
rhv.admin_seq,
rhv.household_seq
h.household_num,
h.name,
h.owner_name,
rhv.visit_date,
rhv.memo,
case rhv.is_gift_sent when false then '전달완료' when true then '-' end is_gift_sent_flag,