다시 수정

This commit is contained in:
주수현
2025-06-14 10:54:26 +09:00
parent c57cbd0662
commit 7e39886612
2 changed files with 21 additions and 21 deletions

View File

@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
@Controller
@RequiredArgsConstructor
@RequestMapping(path = "/researcher")
class ResearchersController {
class ResearcherController {
private final UICodeListPortIn uiCodeListPortIn;
private final ResearcherService researcherService;

View File

@@ -5,12 +5,12 @@
<select id="list" parameterType="app.module.admin.usecase.researcher.web.model.ResearchersListReqVO">
select
a.id,
COUNT(rhh.id) AS household_count,
a.name,
a.phone,
max(u.code_text) AS region_main_code_name,
case a.account_disabled when false then '활성화' when true then '비활성화' end account_disabled_flag
a.id,
COUNT(rhh.id) AS household_count,
a.name,
a.phone,
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
left join uicode u ON u.parent_id = 'code.region.main' AND u.id = a.region_main_code
@@ -50,10 +50,10 @@
<select id="detail">
select
a.id,
a.name,
a.phone,
u.code_text AS region_main_code_name,
a.id,
a.name,
a.phone,
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
@@ -66,16 +66,16 @@
<select id="mappingHouseholdList">
select
h.seq,
h.household_num,
h.name,
h.phone,
rm.code_text AS region_main_code_name,
rs.code_text AS region_sub_code_name,
rd.code_text AS region_detail_code_name,
il.code_text AS industry_large_code_name,
im.code_text AS industry_middle_code_name,
case h.is_panel when false then '유지' when true then '탈락' end panel_flag
h.seq,
h.household_num,
h.name,
h.phone,
rm.code_text AS region_main_code_name,
rs.code_text AS region_sub_code_name,
rd.code_text AS region_detail_code_name,
il.code_text AS industry_large_code_name,
im.code_text AS industry_middle_code_name,
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