시군구 관리 수정

main
이범준 9 months ago
parent 6f49f841b0
commit 3b27fe4a5a

@ -1,7 +1,6 @@
package cokr.xit.fims.mngt; package cokr.xit.fims.mngt;
import cokr.xit.base.user.Sigungu; import cokr.xit.base.user.Sigungu;
import cokr.xit.foundation.AbstractEntity;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;
@ -13,11 +12,6 @@ import lombok.Setter;
@Setter @Setter
public class FineIntegrationSigungu extends Sigungu { public class FineIntegrationSigungu extends Sigungu {
/**
*
*/
private String sggCd;
/** /**
* *
*/ */

@ -139,7 +139,7 @@ public class Mngt03Controller extends ApplicationController {
public ModelAndView updateSgg(FineIntegrationSigungu sgg, MultipartFile symbol, MultipartFile logo, MultipartFile offcs) { public ModelAndView updateSgg(FineIntegrationSigungu sgg, MultipartFile symbol, MultipartFile logo, MultipartFile offcs) {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
String sggCd = sgg.getSggCd(); String sggCd = sgg.getSggID();
if(symbol != null && !symbol.isEmpty() && symbol.getSize() != 0) { if(symbol != null && !symbol.isEmpty() && symbol.getSize() != 0) {
Map<String,String> newSymbol = this.uploadForSgg(symbol, sggCd, "symbol"); Map<String,String> newSymbol = this.uploadForSgg(symbol, sggCd, "symbol");

@ -59,7 +59,7 @@ UPDATE TB_SGG
, OFFCS_FILE_PATH = #{sgg.offcsFilePath} <!-- 직인 파일 경로 --> , OFFCS_FILE_PATH = #{sgg.offcsFilePath} <!-- 직인 파일 경로 -->
, OFFCS_FILE_NM = #{sgg.offcsFileNm} <!-- 직인 파일 명 --> , OFFCS_FILE_NM = #{sgg.offcsFileNm} <!-- 직인 파일 명 -->
</if> </if>
WHERE SGG_CD = #{sgg.sggCd} WHERE SGG_CD = #{sgg.sggID}
</update> </update>
</mapper> </mapper>

@ -19,7 +19,7 @@
<div class="row g-3 mt-1 mb-3"> <div class="row g-3 mt-1 mb-3">
<div class="col-md-6"> <div class="col-md-6">
<label class="w-px-140 col-form-label text-sm-end pe-2" for="">시군구명</label> <label class="w-px-140 col-form-label text-sm-end pe-2" for="">시군구명</label>
<input name="sggCd" type="hidden" /> <input name="sggID" type="hidden" />
<input name="sggNm" type="text" class="form-control" readonly /> <input name="sggNm" type="text" class="form-control" readonly />
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
@ -270,12 +270,12 @@ $(document).ready(function(){
ajax.get({ ajax.get({
url: wctx.url("mngt/mngt03/010/getSggInfo.do"), url: wctx.url("mngt/mngt03/010/getSggInfo.do"),
data: { data: {
sggCd : $P.curSggCd sggID : $P.curSggCd
}, },
success : function(resp, textStatus, jqXHR) { success : function(resp, textStatus, jqXHR) {
$P.sggInfo = resp.sggInfo; $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='sggNm']").val($P.sggInfo.SGG_NM);
$("#mainForm--${pageName}").find("[name='instCd']").val($P.sggInfo.INST_CD); $("#mainForm--${pageName}").find("[name='instCd']").val($P.sggInfo.INST_CD);
$("#mainForm--${pageName}").find("[name='instNm']").val($P.sggInfo.INST_NM); $("#mainForm--${pageName}").find("[name='instNm']").val($P.sggInfo.INST_NM);
@ -485,7 +485,7 @@ $(document).ready(function(){
ajax.post({ ajax.post({
url: wctx.url("mngt/mngt03/010/createTaskStng.do"), url: wctx.url("mngt/mngt03/010/createTaskStng.do"),
data: { data: {
sggCd : $("#mainForm--${pageName}").find("[name='sggCd']").val(), sggCd : $("#mainForm--${pageName}").find("[name='sggID']").val(),
taskSeCd : taskSeCd taskSeCd : taskSeCd
}, },
success: (resp) => { success: (resp) => {
@ -505,7 +505,7 @@ $(document).ready(function(){
$P.fnSaveForTask = (el) => { $P.fnSaveForTask = (el) => {
var taskSeCd = el.dataset.task; 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]); var formData = new FormData($("#"+taskSeCd+"Form--${pageName}")[0]);
formData.append("taskSeCd",taskSeCd); formData.append("taskSeCd",taskSeCd);
@ -559,7 +559,7 @@ $(document).ready(function(){
row.spclBizCd = $($P.fnGetElement(this,"spclBizCd")).val(); row.spclBizCd = $($P.fnGetElement(this,"spclBizCd")).val();
row.spclBizNm = $($P.fnGetElement(this,"spclBizNm")).val(); row.spclBizNm = $($P.fnGetElement(this,"spclBizNm")).val();
row.sggCd = formData.get("sggCd"); row.sggCd = formData.get("sggID");
row.taskSeCd = formData.get("taskSeCd"); row.taskSeCd = formData.get("taskSeCd");
rowArr.push(row); rowArr.push(row);

Loading…
Cancel
Save