diff --git a/src/main/java/cokr/xit/fims/base/dao/OgdpMapper.java b/src/main/java/cokr/xit/fims/base/dao/OgdpMapper.java index 07a39296..067e2cb4 100644 --- a/src/main/java/cokr/xit/fims/base/dao/OgdpMapper.java +++ b/src/main/java/cokr/xit/fims/base/dao/OgdpMapper.java @@ -4,7 +4,6 @@ import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.Select; -import org.apache.ibatis.annotations.SelectProvider; import org.apache.ibatis.annotations.Update; import org.egovframe.rte.psl.dataaccess.mapper.Mapper; @@ -16,7 +15,21 @@ import cokr.xit.foundation.data.DataObject; @Mapper("ogdpMapper") public interface OgdpMapper extends AbstractMapper { - public static String selectAdd = """ + public static String select = """ + SELECT D.DEPT_CD + , D.SGG_CD + , (SELECT SGG_NM FROM TB_SGG WHERE SGG_CD = D.SGG_CD) AS SGG_NM + , D.INST_CD + , (SELECT INST_NM FROM TB_SGG WHERE INST_CD = D.INST_CD) AS INST_NM + , D.DEPT_NM + , D.DEPT_TELNO + , D.DEPT_FXNO + , D.USE_YN + , (CASE D.USE_YN WHEN 'Y' THEN '사용' WHEN 'N' THEN '미사용' ELSE '' END) AS USE_YN_NM + , D.REG_DT + , D.RGTR + , D.MDFCN_DT + , D.MDFR , D.CVLCPT_LINK_SE_CD , D.VRBACNT_LINK_SE_CD , D.PSTOFC_NM @@ -39,6 +52,21 @@ public interface OgdpMapper extends AbstractMapper { , D.DTBN_ACTNO , D.DOC_HEADER , D.SRVR_OS + FROM TB_DEPT D + + + AND D.SGG_CD = #{sggCd} + + + AND D.DEPT_CD = #{deptCd} + + + AND D.INST_CD = #{instCd} + + + AND D.USE_YN = #{useYn} + + """; /**모든 기관,부서 목록을 반환한다.
@@ -152,7 +180,7 @@ public interface OgdpMapper extends AbstractMapper { - /**시군구 정보를 수정한다. + /**시군구 설정 정보를 수정한다. * @param sgg 시군구 * @return 저장 여부 *