From 7d45c7528828c3153e4ce466dfef087830872bba Mon Sep 17 00:00:00 2001 From: leebeomjun Date: Thu, 28 Dec 2023 17:42:31 +0900 Subject: [PATCH] =?UTF-8?q?=ED=86=B5=ED=95=A9=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EB=A9=94=EC=9D=B8=ED=99=94=EB=A9=B4=20=EC=97=85=EB=AC=B4?= =?UTF-8?q?=EA=B5=AC=EB=B6=84=20=ED=91=9C=EC=8B=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xit/fims/sprt/web/Sprt01Controller.java | 28 +++++++++++++++++++ .../WEB-INF/jsp/fims/sprt/sprt01011-info.jsp | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) diff --git a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java index 265215e5..116f55c8 100644 --- a/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java +++ b/src/main/java/cokr/xit/fims/sprt/web/Sprt01Controller.java @@ -21,10 +21,14 @@ import cokr.xit.base.code.CommonCode; import cokr.xit.base.file.xls.XLSWriter; import cokr.xit.base.file.xls.XLSWriter.CellDef; import cokr.xit.base.file.xls.XLSWriter.Styler; +import cokr.xit.base.security.SecuredUserInfo; import cokr.xit.base.user.ManagedUser; import cokr.xit.base.user.dao.UserMapper; import cokr.xit.base.web.ApplicationController; +import cokr.xit.fims.cmmn.CmmnQuery; import cokr.xit.fims.cmmn.CmmnUtil; +import cokr.xit.fims.cmmn.service.bean.FactionBean; +import cokr.xit.fims.cmmn.service.bean.TaskBean; import cokr.xit.fims.crdn.Crdn; import cokr.xit.fims.crdn.dao.GlobalStngMapper; import cokr.xit.fims.sprt.Keyword; @@ -95,6 +99,12 @@ public class Sprt01Controller extends ApplicationController { @Resource(name="otptStngBean") protected OtptStngBean otptStngBean; + @Resource(name = "taskBean") + private TaskBean taskBean; + + @Resource(name = "factionBean") + private FactionBean factionBean; + /**통합 조회 메인화면(fims/sprt/sprt01/010-main)을 연다. * * @return /fims/sprt/sprt01010 @@ -118,6 +128,24 @@ public class Sprt01Controller extends ApplicationController { mav.addObject("FIM026List", commonCodes.get("FIM026")); mav.addObject("FIM054List", commonCodes.get("FIM054")); + List taskListForSgg = new ArrayList(); + if(currentUser().getInstitute().equals("default")) { + taskListForSgg = commonCodes.get("FIM054"); + } else { + SecuredUserInfo userInfo = currentUser(); + Map info = userInfo.getInfo(); + if(info == null || info.get("sggCd") == null || info.get("sggCd").equals("")) { + factionBean.initUserInfo(userInfo); + } + + List taskSeCdListForSgg = taskBean.getTasks((new CmmnQuery()).setSggCd((String)userInfo.getInfo().get("sggCd")).setUseYN("Y")) + .stream().map(item -> item.string("TASK_SE_CD")).toList(); + + taskListForSgg = commonCodes.get("FIM054").stream() + .filter(item -> taskSeCdListForSgg.contains(item.getCode())).toList(); + } + mav.addObject("TaskListForSgg", taskListForSgg); + mav.addObject("FIM004List", commonCodes.get("FIM004")); mav.addObject("FIM005List", commonCodes.get("FIM005")); mav.addObject("FIM006List", commonCodes.get("FIM006")); diff --git a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01011-info.jsp b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01011-info.jsp index d0e6fdd9..c2766656 100644 --- a/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01011-info.jsp +++ b/src/main/webapp/WEB-INF/jsp/fims/sprt/sprt01011-info.jsp @@ -60,7 +60,7 @@ value="" onchange="integrationSearch.fnResetAndChangeBiz('');" checked="checked"> 전체 - +