From a53e270da13cf358e54b3f01ed99479cdcb5885e Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Mon, 11 Dec 2023 10:00:02 +0900 Subject: [PATCH] =?UTF-8?q?=EB=8B=A8=EC=86=8D=EC=88=98=EA=B8=B0=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/crdn/web/Crdn05Controller.java | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 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 55a0880c..b18f8466 100644 --- a/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java +++ b/src/main/java/cokr/xit/fims/crdn/web/Crdn05Controller.java @@ -25,6 +25,7 @@ import cokr.xit.base.web.ApplicationController; import cokr.xit.fims.cmmn.CmmnUtil; import cokr.xit.fims.cmmn.ftp.FTPUtil; import cokr.xit.fims.cmmn.ftp.RemoteSystemInfo; +import cokr.xit.fims.cmmn.service.bean.FactionBean; import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.CrdnQuery; import cokr.xit.fims.crdn.dao.CrdnInstMapper; @@ -39,6 +40,7 @@ import cokr.xit.fims.crdn.service.CrdnService; import cokr.xit.fims.crdn.service.CrdnStngService; import cokr.xit.fims.crdn.service.ImportService; import cokr.xit.fims.crdn.service.bean.CrdnStngBean; +import cokr.xit.foundation.UserInfo; import cokr.xit.foundation.data.DataObject; /**단속 자료 등록 서비스 웹 컨트롤러.
@@ -87,6 +89,9 @@ public class Crdn05Controller extends ApplicationController { @Resource(name="userMapper") protected UserMapper userMapper; + @Resource(name="factionBean") + protected FactionBean factionBean; + /** 단속 자료 등록 메인화면을 연다. * @return fims/crdn/crdn05010-main */ @@ -443,12 +448,19 @@ public class Crdn05Controller extends ApplicationController { */ public ModelAndView createCrdnDataByManual(HttpServletRequest hReq, Crdn crdn, MultipartFile[] newFileList) { boolean saved = false; - ManagedUser currentUser = userMapper.getUser(currentUser().getAccount(), currentUser().getInstitute()); - String deptCd = currentUser.getDeptCode(); - crdn.setSggCd(globalStngMapper.selectSggCd(deptCd)); + UserInfo userInfo = currentUser(); + factionBean.initUserInfo(userInfo); + + crdn.setSggCd((String)userInfo.getInfo().get("sggCd")); crdn.setCrdnRegSeCd("01"); - crdn.setCrdnInptSeCd("03");//TODO : 사용자 기관의 시청,구청 구분 + if(((String)userInfo.getInfo().get("instNm")).endsWith("시")) { + crdn.setCrdnInptSeCd("03");//시청 + } else { + crdn.setCrdnInptSeCd("02");//구청 + } + + List fileInfoList = new ArrayList(); if(newFileList != null && newFileList.length > 0) {