다시 수정
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user