From 45a8e0c7d3df9682cf886155292ad540ae089dde Mon Sep 17 00:00:00 2001 From: leebj Date: Wed, 26 Jun 2024 18:03:19 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B8=B0=EA=B4=80=EB=AA=A9=EB=A1=9D=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=20=EC=88=98=EC=A0=95(=EA=B8=B0=EA=B4=80=20?= =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90=20=EC=A1=B4=EC=9E=AC=20=EC=97=AC?= =?UTF-8?q?=EB=B6=80=20=EC=B6=94=EA=B0=80)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/cokr/xit/applib/ogdp/dao/OgdpMapper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();