From 3b27fe4a5a96b79fa91521996d919de1e0fec2d0 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 8 Feb 2024 14:46:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=8B=9C=EA=B5=B0=EA=B5=AC=20=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cokr/xit/fims/mngt/FineIntegrationSigungu.java | 6 ------ .../cokr/xit/fims/mngt/web/Mngt03Controller.java | 2 +- .../resources/sql/mapper/fims/mngt/sgg-mapper.xml | 2 +- .../webapp/WEB-INF/jsp/fims/mngt/mngt03010-main.jsp | 12 ++++++------ 4 files changed, 8 insertions(+), 14 deletions(-) diff --git a/src/main/java/cokr/xit/fims/mngt/FineIntegrationSigungu.java b/src/main/java/cokr/xit/fims/mngt/FineIntegrationSigungu.java index c19a0ed8..afa69903 100644 --- a/src/main/java/cokr/xit/fims/mngt/FineIntegrationSigungu.java +++ b/src/main/java/cokr/xit/fims/mngt/FineIntegrationSigungu.java @@ -1,7 +1,6 @@ package cokr.xit.fims.mngt; import cokr.xit.base.user.Sigungu; -import cokr.xit.foundation.AbstractEntity; import lombok.Getter; import lombok.Setter; @@ -13,11 +12,6 @@ import lombok.Setter; @Setter public class FineIntegrationSigungu extends Sigungu { - /** - * 시군구 코드 - */ - private String sggCd; - /** * 기관 우편번호 */ diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java index 7e070e9a..e22696c1 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt03Controller.java @@ -139,7 +139,7 @@ public class Mngt03Controller extends ApplicationController { public ModelAndView updateSgg(FineIntegrationSigungu sgg, MultipartFile symbol, MultipartFile logo, MultipartFile offcs) { ModelAndView mav = new ModelAndView("jsonView"); - String sggCd = sgg.getSggCd(); + String sggCd = sgg.getSggID(); if(symbol != null && !symbol.isEmpty() && symbol.getSize() != 0) { Map newSymbol = this.uploadForSgg(symbol, sggCd, "symbol"); diff --git a/src/main/resources/sql/mapper/fims/mngt/sgg-mapper.xml b/src/main/resources/sql/mapper/fims/mngt/sgg-mapper.xml index 88c35c9d..2bdfc1bc 100644 --- a/src/main/resources/sql/mapper/fims/mngt/sgg-mapper.xml +++ b/src/main/resources/sql/mapper/fims/mngt/sgg-mapper.xml @@ -59,7 +59,7 @@ UPDATE TB_SGG , OFFCS_FILE_PATH = #{sgg.offcsFilePath} , OFFCS_FILE_NM = #{sgg.offcsFileNm} - WHERE SGG_CD = #{sgg.sggCd} + WHERE SGG_CD = #{sgg.sggID} \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt03010-main.jsp b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt03010-main.jsp index e51be2ba..cdd6643b 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt03010-main.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/mngt/mngt03010-main.jsp @@ -19,7 +19,7 @@
- +
@@ -270,12 +270,12 @@ $(document).ready(function(){ ajax.get({ url: wctx.url("mngt/mngt03/010/getSggInfo.do"), data: { - sggCd : $P.curSggCd + sggID : $P.curSggCd }, success : function(resp, textStatus, jqXHR) { $P.sggInfo = resp.sggInfo; - $("#mainForm--${pageName}").find("[name='sggCd']").val($P.sggInfo.SGG_CD); + $("#mainForm--${pageName}").find("[name='sggID']").val($P.sggInfo.SGG_CD); $("#mainForm--${pageName}").find("[name='sggNm']").val($P.sggInfo.SGG_NM); $("#mainForm--${pageName}").find("[name='instCd']").val($P.sggInfo.INST_CD); $("#mainForm--${pageName}").find("[name='instNm']").val($P.sggInfo.INST_NM); @@ -485,7 +485,7 @@ $(document).ready(function(){ ajax.post({ url: wctx.url("mngt/mngt03/010/createTaskStng.do"), data: { - sggCd : $("#mainForm--${pageName}").find("[name='sggCd']").val(), + sggCd : $("#mainForm--${pageName}").find("[name='sggID']").val(), taskSeCd : taskSeCd }, success: (resp) => { @@ -505,7 +505,7 @@ $(document).ready(function(){ $P.fnSaveForTask = (el) => { var taskSeCd = el.dataset.task; - var sggCd = $("#mainForm--${pageName}").find("[name='sggCd']").val(); + var sggCd = $("#mainForm--${pageName}").find("[name='sggID']").val(); var formData = new FormData($("#"+taskSeCd+"Form--${pageName}")[0]); formData.append("taskSeCd",taskSeCd); @@ -559,7 +559,7 @@ $(document).ready(function(){ row.spclBizCd = $($P.fnGetElement(this,"spclBizCd")).val(); row.spclBizNm = $($P.fnGetElement(this,"spclBizNm")).val(); - row.sggCd = formData.get("sggCd"); + row.sggCd = formData.get("sggID"); row.taskSeCd = formData.get("taskSeCd"); rowArr.push(row);