From 5b21460512d3721dea07e9f36206f69e25f144ed Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 1 Jul 2024 14:56:01 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A1=A4=EB=B0=B1=EC=86=8C=EC=8A=A4=20?= =?UTF-8?q?=EC=9D=BC=EB=B6=80=20=EB=B3=B5=EA=B5=AC,=20=EC=8B=9C=EA=B5=B0?= =?UTF-8?q?=EA=B5=AC=EB=A7=A4=ED=8D=BC,=EB=B6=80=EC=84=9C=EB=A7=A4?= =?UTF-8?q?=ED=8D=BCxml=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 4 +- .../java/cokr/xit/fims/FimsApplication.java | 2 - .../sql/mapper/base/department-mapper.xml | 109 ++++++++++++++++ .../sql/mapper/base/sigungu-mapper.xml | 121 ++++++++++++++++++ src/main/webapp/WEB-INF/jsp/login.jsp | 72 +++++++---- 5 files changed, 277 insertions(+), 31 deletions(-) create mode 100644 src/main/resources/sql/mapper/base/department-mapper.xml create mode 100644 src/main/resources/sql/mapper/base/sigungu-mapper.xml diff --git a/pom.xml b/pom.xml index 4732d72c..c1f626bb 100644 --- a/pom.xml +++ b/pom.xml @@ -212,7 +212,7 @@ - + diff --git a/src/main/java/cokr/xit/fims/FimsApplication.java b/src/main/java/cokr/xit/fims/FimsApplication.java index bfe7618f..c2ab4c01 100644 --- a/src/main/java/cokr/xit/fims/FimsApplication.java +++ b/src/main/java/cokr/xit/fims/FimsApplication.java @@ -4,7 +4,6 @@ import org.springframework.boot.Banner; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.ImportAutoConfiguration; import org.springframework.boot.builder.SpringApplicationBuilder; -import org.springframework.boot.context.ApplicationPidFileWriter; import org.springframework.context.annotation.ImportResource; import cokr.xit.base.ServletCustomizer; @@ -34,7 +33,6 @@ public class FimsApplication extends XitBaseApplication { application.setBannerMode(Banner.Mode.OFF); application.setLogStartupInfo(false); - application.addListeners(new ApplicationPidFileWriter("fims.pid")); application.run(args); } diff --git a/src/main/resources/sql/mapper/base/department-mapper.xml b/src/main/resources/sql/mapper/base/department-mapper.xml new file mode 100644 index 00000000..799fab61 --- /dev/null +++ b/src/main/resources/sql/mapper/base/department-mapper.xml @@ -0,0 +1,109 @@ + + + + + + + + + + + + + + + + + + + + +SELECT DEPT_CD + , SGG_CD + , INST_CD + , DEPT_NM + , DEPT_TELNO + , DEPT_FXNO + , USE_YN + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_DEPT + + + + + +SELECT A.SGG_CD, SGG_NM, A.INST_CD, INST_NM, DEPT_CD, DEPT_NM + FROM TB_SGG A LEFT OUTER JOIN TB_DEPT B + ON A.SGG_CD = B.SGG_CD AND A.INST_CD = B.INST_CD + AND A.USE_YN = 'Y' AND B.USE_YN = 'Y' + + + +/* 부서 정보 등록(departmentMapper.insert) */ +INSERT INTO TB_DEPT ( + DEPT_CD + , SGG_CD + , INST_CD + , DEPT_NM + , DEPT_TELNO + , DEPT_FXNO + , USE_YN + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{deptID} + , #{sggID} + , #{instCode} + , #{name} + , #{telno} + , #{faxno} + , #{useYN} + , #{createdAt} + , #{createdBy} + , #{lastModified} + , #{modifiedBy} +) + +/* 부서 정보 수정(departmentMapper.update) */ +UPDATE TB_DEPT + SET SGG_CD = #{sggID} + , INST_CD = #{instCode} + , DEPT_NM = #{name} + , DEPT_TELNO = #{telno} + , DEPT_FXNO = #{faxno} + , MDFCN_DT = #{lastModified} + , MDFR = #{modifiedBy} + WHERE DEPT_CD = #{deptID} + +/* 부서 정보 삭제(departmentMapper.deleteDepartment) */ +UPDATE TB_DEPT + SET USE_YN = 'N' + , MDFCN_DT = + , MDFR = #{currentUser.id} + AND SGG_CD IN (#{sggID}) + AND DEPT_CD IN (#{deptID}) + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/sigungu-mapper.xml b/src/main/resources/sql/mapper/base/sigungu-mapper.xml new file mode 100644 index 00000000..f034d48d --- /dev/null +++ b/src/main/resources/sql/mapper/base/sigungu-mapper.xml @@ -0,0 +1,121 @@ + + + + + + + + + + + + + + + + + + + + + + + + +SELECT SGG_CD + , SGG_NM + , INST_CD + , INST_SE_CD + , INST_NM + , INST_ADDR + , INST_DADDR + , INST_ZIP + , OFFCS_FILE_PATH + , OFFCS_FILE_NM + , USE_YN + , REG_DT + , RGTR + , MDFCN_DT + , MDFR + FROM TB_SGG + + + + + +/* 시군구 등록(sigunguMapper.insert) */ +INSERT INTO TB_SGG ( + SGG_CD + , SGG_NM + , INST_CD + , INST_SE_CD + , INST_NM + , INST_ADDR + , INST_DADDR + , INST_ZIP + , OFFCS_FILE_PATH + , OFFCS_FILE_NM + , USE_YN + , REG_DT + , RGTR + , MDFCN_DT + , MDFR +) VALUES ( + #{sggID} + , #{sggName} + , #{instCode} + , #{instType} + , #{instName} + , #{instAddress} + , #{instDetailAddress} + , #{instZipCode} + , #{officialSealFilepath} + , #{officialSealFilename} + , #{useYN} + , #{createdAt} + , #{createdBy} + , #{lastModified} + , #{modifiedBy} +) + +/* 시군구 수정(sigunguMapper.update) */ +UPDATE TB_SGG + SET INST_CD = #{instCode} + , INST_SE_CD = #{instType} + , SGG_NM = #{sggName} + , INST_NM = #{instName} + , INST_ADDR = #{instAddress} + , INST_DADDR = #{instDetailAddress} + , INST_ZIP = #{instZipCode} + , OFFCS_FILE_PATH = #{officialSealFilepath} + , OFFCS_FILE_NM = #{officialSealFilename} + , USE_YN = #{useYN} + , MDFCN_DT = #{lastModified} + , MDFR = #{modifiedBy} + WHERE SGG_CD = #{sggID} + +/* 시군구 삭제(sigunguMapper.delete) */ +UPDATE TB_SGG + SET USE_YN = 'N' + , MDFCN_DT = + , MDFR = #{currentUser.id} + WHERE SGG_CD IN (#{sggID}) + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/login.jsp b/src/main/webapp/WEB-INF/jsp/login.jsp index d3f4c771..179b40f5 100644 --- a/src/main/webapp/WEB-INF/jsp/login.jsp +++ b/src/main/webapp/WEB-INF/jsp/login.jsp @@ -54,8 +54,14 @@
- + + + + +
@@ -67,6 +73,10 @@ required title="비밀번호 입력" class="typePassword required form-control inp-long" placeholder="비밀번호" autocomplete="false" />
+
+ + +