From dcc48101271d4b03212e34fbd11be3861e4512c1 Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 31 Aug 2023 16:10:48 +0900 Subject: [PATCH] no message --- src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java | 2 ++ .../xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java | 5 ++--- src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java | 4 ++++ 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java index aa010963..d4ae4b32 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java @@ -152,6 +152,8 @@ public class Crdn05Controller extends ApplicationController { public ModelAndView createCrdnDataByManual(HttpServletRequest hReq, Crdn crdn, MultipartFile[] newFileList) { boolean saved = false; + crdn.setSggCd(globalStngMapper.selectSggCdForCurrentUser()); + crdn.setCrdnRegSeCd("01"); crdn.setCrdnInptSeCd("03");//TODO : 사용자 기관의 시청,구청 구분 diff --git a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java index 77c26bc2..8fae65ab 100644 --- a/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java +++ b/src/main/java/cokr/xit/fims/cvlc/service/bean/CrdnCvlcptServiceBean.java @@ -333,7 +333,7 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv //부과제외 대장을 등록 한다. LevyExcl excl01 = new LevyExcl(); - excl01.setSggCd(globalStngMapper.selectSggCdForCurrentUser()); + excl01.setSggCd(crdnInfo.string("SGG_CD")); excl01.setTaskSeCd(crdnInfo.string("TASK_SE_CD")); excl01.setCrdnId(crdnInfo.string("CRDN_ID")); excl01.setLevyExclYmd((new SimpleDateFormat("yyyyMMdd")).format(new Date())); @@ -364,7 +364,6 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv @Override public boolean updateCvlcptPrcsSe(Map nonQueryRequest, CrdnCvlcpt crdnCvlcpt, Crdn crdn, List newFileInfoList) { boolean saved = false; - crdn.setSggCd(globalStngMapper.selectSggCdForCurrentUser()); DataObject crdnInfo = crdnInfoMapper.selectCrdnInfo(crdn.getCrdnId()); @@ -398,7 +397,7 @@ public class CrdnCvlcptServiceBean extends AbstractServiceBean implements CrdnCv } CrdnQuery crdnQuery = new CrdnQuery(); - crdnQuery.setSggCd(globalStngMapper.selectSggCdForCurrentUser()); + crdnQuery.setSggCd(crdn.getSggCd()); crdnQuery.setTaskSeCd(crdn.getTaskSeCd()); crdnQuery.setAnsRsnCd(ansRsnCd); if(crdn.getVltnCd().equals("01") && ifEmpty(crdnCvlcpt.getDstrbncYn(), () -> "").equals("Y")) { diff --git a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java index 41fd6325..24b53647 100644 --- a/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java +++ b/src/main/java/cokr/xit/fims/cvlc/web/Cvlc01Controller.java @@ -197,6 +197,10 @@ public class Cvlc01Controller extends ApplicationController { */ public ModelAndView saveCivilComplaintProcessSe(HttpServletRequest hReq, CrdnCvlcpt crdnCvlcpt, Crdn crdn, MultipartFile[] newFileList, MultipartFile[] modifyFileList) { + String sggCd = globalStngMapper.selectSggCdForCurrentUser(); + crdn.setSggCd(sggCd); + crdnCvlcpt.setSggCd(sggCd); + boolean saved = false; String[] deleteFileKeyList = hReq.getParameterValues("deleteFileKeyList");