다시 수정
This commit is contained in:
@@ -17,7 +17,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||||||
@Controller
|
@Controller
|
||||||
@RequiredArgsConstructor
|
@RequiredArgsConstructor
|
||||||
@RequestMapping(path = "/researcher")
|
@RequestMapping(path = "/researcher")
|
||||||
class ResearchersController {
|
class ResearcherController {
|
||||||
private final UICodeListPortIn uiCodeListPortIn;
|
private final UICodeListPortIn uiCodeListPortIn;
|
||||||
private final ResearcherService researcherService;
|
private final ResearcherService researcherService;
|
||||||
|
|
||||||
|
|||||||
@@ -5,12 +5,12 @@
|
|||||||
|
|
||||||
<select id="list" parameterType="app.module.admin.usecase.researcher.web.model.ResearchersListReqVO">
|
<select id="list" parameterType="app.module.admin.usecase.researcher.web.model.ResearchersListReqVO">
|
||||||
select
|
select
|
||||||
a.id,
|
a.id,
|
||||||
COUNT(rhh.id) AS household_count,
|
COUNT(rhh.id) AS household_count,
|
||||||
a.name,
|
a.name,
|
||||||
a.phone,
|
a.phone,
|
||||||
max(u.code_text) AS region_main_code_name,
|
max(u.code_text) AS region_main_code_name,
|
||||||
case a.account_disabled when false then '활성화' when true then '비활성화' end account_disabled_flag
|
case a.account_disabled when false then '활성화' when true then '비활성화' end account_disabled_flag
|
||||||
from admin a
|
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
|
||||||
left join uicode u ON u.parent_id = 'code.region.main' AND u.id = a.region_main_code
|
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 id="detail">
|
||||||
select
|
select
|
||||||
a.id,
|
a.id,
|
||||||
a.name,
|
a.name,
|
||||||
a.phone,
|
a.phone,
|
||||||
u.code_text AS region_main_code_name,
|
u.code_text AS region_main_code_name,
|
||||||
case a.account_disabled when false then '활성화' when true then '비활성화' end account_disabled_flag
|
case a.account_disabled when false then '활성화' when true then '비활성화' end account_disabled_flag
|
||||||
from admin a
|
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
|
||||||
@@ -66,16 +66,16 @@
|
|||||||
|
|
||||||
<select id="mappingHouseholdList">
|
<select id="mappingHouseholdList">
|
||||||
select
|
select
|
||||||
h.seq,
|
h.seq,
|
||||||
h.household_num,
|
h.household_num,
|
||||||
h.name,
|
h.name,
|
||||||
h.phone,
|
h.phone,
|
||||||
rm.code_text AS region_main_code_name,
|
rm.code_text AS region_main_code_name,
|
||||||
rs.code_text AS region_sub_code_name,
|
rs.code_text AS region_sub_code_name,
|
||||||
rd.code_text AS region_detail_code_name,
|
rd.code_text AS region_detail_code_name,
|
||||||
il.code_text AS industry_large_code_name,
|
il.code_text AS industry_large_code_name,
|
||||||
im.code_text AS industry_middle_code_name,
|
im.code_text AS industry_middle_code_name,
|
||||||
case h.is_panel when false then '유지' when true then '탈락' end panel_flag
|
case h.is_panel when false then '유지' when true then '탈락' end panel_flag
|
||||||
from household h
|
from household h
|
||||||
join admin_has_role ahr ON h.seq = ahr.admin_seq
|
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 rm ON u.parent_id = 'code.region.main' AND u.id = h.region_main_code
|
||||||
|
|||||||
Reference in New Issue
Block a user