no message

main
이범준 5 months ago
parent 1a4db98920
commit 41f95342c3

@ -26,7 +26,7 @@ public interface OgdpMapper extends AbstractMapper {
@Select(SQLUtil.SCRIPT_START+""" @Select(SQLUtil.SCRIPT_START+"""
/* 전체 기관,부서 목록 조회(ogdpMapper.selectAllOgdpList) */ /* 전체 기관,부서 목록 조회(ogdpMapper.selectAllOgdpList) */
SELECT CONCAT(A.INST_CD,'/',B.DEPT_CD) AS OGDP_CD SELECT CONCAT(A.INST_CD,'/',B.DEPT_CD) AS OGDP_CD
, CONCAT(A.INST_NM,' / ',B.DEPT_NM) AS OGDP_NM , CONCAT(A.SGG_NM, ' / ', A.INST_NM, ' : ', B.DEPT_NM) AS OGDP_NM
, A.INST_CD , A.INST_CD
, A.INST_NM , A.INST_NM
, B.DEPT_CD , B.DEPT_CD
@ -37,7 +37,7 @@ public interface OgdpMapper extends AbstractMapper {
LEFT OUTER JOIN TB_DEPT B ON (A.INST_CD = B.INST_CD) LEFT OUTER JOIN TB_DEPT B ON (A.INST_CD = B.INST_CD)
UNION UNION
SELECT ('default/default') AS OGDP_CD SELECT ('default/default') AS OGDP_CD
, CONCAT(' ',' / ',' ') AS OGDP_NM , CONCAT(' ',' / ',' ', ' : ', ' ') AS OGDP_NM
, 'default' AS INST_CD , 'default' AS INST_CD
, ' ' AS INST_NM , ' ' AS INST_NM
, 'default' AS DEPT_CD , 'default' AS DEPT_CD
@ -56,7 +56,7 @@ public interface OgdpMapper extends AbstractMapper {
@Select(SQLUtil.SCRIPT_START+""" @Select(SQLUtil.SCRIPT_START+"""
/* 사용가능한 기관,부서 목록 조회(ogdpMapper.selectAbleOgdpList) */ /* 사용가능한 기관,부서 목록 조회(ogdpMapper.selectAbleOgdpList) */
SELECT CONCAT(A.INST_CD,'/',B.DEPT_CD) AS OGDP_CD SELECT CONCAT(A.INST_CD,'/',B.DEPT_CD) AS OGDP_CD
, CONCAT(A.INST_NM,' / ',B.DEPT_NM) AS OGDP_NM , CONCAT(A.SGG_NM, ' / ', A.INST_NM, ' : ', B.DEPT_NM) AS OGDP_NM
, A.INST_CD , A.INST_CD
, A.INST_NM , A.INST_NM
, B.DEPT_CD , B.DEPT_CD
@ -76,7 +76,7 @@ public interface OgdpMapper extends AbstractMapper {
<if test="currentUser.institute == 'default'"> <if test="currentUser.institute == 'default'">
UNION UNION
SELECT 'default/default' AS OGDP_CD SELECT 'default/default' AS OGDP_CD
, CONCAT(' ',' / ',' ') AS OGDP_NM , CONCAT(' ',' / ',' ', ' : ', ' ') AS OGDP_NM
, 'default' AS INST_CD , 'default' AS INST_CD
, ' ' AS INST_NM , ' ' AS INST_NM
, 'default' AS DEPT_CD , 'default' AS DEPT_CD
@ -134,7 +134,8 @@ public interface OgdpMapper extends AbstractMapper {
/* 모든 시군구 조회(ogdpMapper.selectAllSggList) */ /* 모든 시군구 조회(ogdpMapper.selectAllSggList) */
SELECT SGG_CD SELECT SGG_CD
, SGG_NM , SGG_NM
FROM TB_SGG , (SELECT (CASE WHEN COUNT(*) > 0 THEN 'Y' ELSE 'N' END) FROM TB_USER WHERE NSTT_CD = A.INST_CD) AS USER_USE_YN
FROM TB_SGG A
WHERE USE_YN = 'Y' WHERE USE_YN = 'Y'
"""+SQLUtil.SCRIPT_END) """+SQLUtil.SCRIPT_END)
List<DataObject> selectAllSggList(); List<DataObject> selectAllSggList();

Loading…
Cancel
Save