|
|
|
@ -4,27 +4,31 @@
|
|
|
|
|
|
|
|
|
|
<select id="selectAllFactionList" resultType="dataobject">
|
|
|
|
|
/* 전체 기관,부서 목록 조회(factionMapper.selectAllFactionList) */
|
|
|
|
|
SELECT CONCAT(A.INST_CD,'/',B.DEPT_CD) AS FACTION_CD
|
|
|
|
|
SELECT CONCAT(A.INST_CD,'/',B.DEPT_CD) AS FACTION_CD
|
|
|
|
|
, CONCAT(A.INST_NM,' / ',B.DEPT_NM) AS FACTION_NM
|
|
|
|
|
, A.INST_CD
|
|
|
|
|
, A.INST_NM
|
|
|
|
|
, B.DEPT_CD
|
|
|
|
|
, B.DEPT_NM
|
|
|
|
|
, A.SGG_CD
|
|
|
|
|
, A.SGG_NM
|
|
|
|
|
FROM TB_SGG A
|
|
|
|
|
LEFT OUTER JOIN TB_DEPT B ON (A.INST_CD = B.INST_CD)
|
|
|
|
|
UNION
|
|
|
|
|
SELECT 'default/default' AS FACTION_CD
|
|
|
|
|
SELECT ('default/default') AS FACTION_CD
|
|
|
|
|
, CONCAT('기본 기관',' / ','기본 부서') AS FACTION_NM
|
|
|
|
|
, 'default' AS INST_CD
|
|
|
|
|
, '기본 기관' AS INST_NM
|
|
|
|
|
, '기본 기관' AS INST_NM
|
|
|
|
|
, 'default' AS DEPT_CD
|
|
|
|
|
, '기본 부서' AS DEPT_NM
|
|
|
|
|
, '기본 부서' AS DEPT_NM
|
|
|
|
|
, 'default' AS SGG_CD
|
|
|
|
|
, '기본 시군구' AS SGG_NM
|
|
|
|
|
FROM DUAL
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="selectAbleFactionList" parameterType="map" resultType="dataobject">
|
|
|
|
|
/* 사용가능한 기관,부서 목록 조회(factionMapper.selectAbleFactionList) */
|
|
|
|
|
SELECT CONCAT(A.INST_CD,'/',B.DEPT_CD) AS FACTION_CD
|
|
|
|
|
SELECT CONCAT(A.INST_CD,'/',B.DEPT_CD) AS FACTION_CD
|
|
|
|
|
, CONCAT(A.INST_NM,' / ',B.DEPT_NM) AS FACTION_NM
|
|
|
|
|
, A.INST_CD
|
|
|
|
|
, A.INST_NM
|
|
|
|
@ -44,12 +48,12 @@ LEFT OUTER JOIN TB_DEPT B ON (A.INST_CD = B.INST_CD)
|
|
|
|
|
</if>
|
|
|
|
|
<if test="currentUser.institute == 'default'">
|
|
|
|
|
UNION
|
|
|
|
|
SELECT 'default/default' AS FACTION_CD
|
|
|
|
|
SELECT 'default/default' AS FACTION_CD
|
|
|
|
|
, CONCAT('기본 기관',' / ','기본 부서') AS FACTION_NM
|
|
|
|
|
, 'default' AS INST_CD
|
|
|
|
|
, '기본 기관' AS INST_NM
|
|
|
|
|
, '기본 기관' AS INST_NM
|
|
|
|
|
, 'default' AS DEPT_CD
|
|
|
|
|
, '기본 부서' AS DEPT_NM
|
|
|
|
|
, '기본 부서' AS DEPT_NM
|
|
|
|
|
, 'default' AS SGG_CD
|
|
|
|
|
, '기본 시군구' AS SGG_NM
|
|
|
|
|
FROM DUAL
|
|
|
|
|