diff --git a/src/main/java/cokr/xit/applib/ogdp/dao/OgdpMapper.java b/src/main/java/cokr/xit/applib/ogdp/dao/OgdpMapper.java index 25fc93d..d7202ca 100644 --- a/src/main/java/cokr/xit/applib/ogdp/dao/OgdpMapper.java +++ b/src/main/java/cokr/xit/applib/ogdp/dao/OgdpMapper.java @@ -120,7 +120,8 @@ public interface OgdpMapper extends AbstractMapper { /* 모든 기관 조회(ogdpMapper.selectAllInstList) */ SELECT INST_CD , INST_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' """+SQLUtil.SCRIPT_END) List selectAllInstList();