From 448123aa56ea55b343177e18c83473087ee4bc00 Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 30 Sep 2024 09:12:23 +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 | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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 68c59a7a..2a6a58c8 100644 --- a/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java +++ b/src/main/java/cokr/xit/fims/mngt/web/Mngt01Controller.java @@ -89,11 +89,6 @@ 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); @@ -120,6 +115,13 @@ public class Mngt01Controller extends ApplicationController { } mav.addObject("ntcInfo", json ? info : toJson(info)); + FimsUser currentUser = (FimsUser) currentUser().getUser(); + if(currentUser.getCntnSeCd().equals("01")) { + mav.addObject("isPublicOfficer", true); + } else { + mav.addObject("isPublicOfficer", false); + } + List allSggList = sggDeptService.getSigunguList(new SigunguQuery()); mav.addObject("sggList", allSggList);