From 770f75db63863a50e3a5dab65cb05979fda2e0b0 Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 30 Sep 2024 09:09:09 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B3=B5=EC=A7=80=EC=82=AC=ED=95=AD=20?= =?UTF-8?q?=EC=A1=B0=ED=9A=8C=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/web/Mngt01Controller.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java b/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java index 8fe3da7f..68c59a7a 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java @@ -57,6 +57,13 @@ public class Mngt01Controller extends ApplicationController { List allSggList = sggDeptService.getSigunguList(new SigunguQuery()); mav.addObject("sggList", allSggList); + FimsUser currentUser = (FimsUser) currentUser().getUser(); + if(currentUser.getCntnSeCd().equals("01")) { + mav.addObject("isPublicOfficer", true); + } else { + mav.addObject("isPublicOfficer", false); + } + return mav; } @@ -82,6 +89,12 @@ public class Mngt01Controller extends ApplicationController { req.setUserSggCd(currentUser.getOrgID()); req.setUserCntnSeCd(currentUser.getCntnSeCd()); } + if(currentUser.getCntnSeCd().equals("01")) { + mav.addObject("isPublicOfficer", true); + } else { + mav.addObject("isPublicOfficer", false); + } + List list = ntcService.getNtcList(req); return setPagingInfo(mav, list, "");