공지사항 조회 수정

main
이범준 2 months ago
parent cab971245c
commit 770f75db63

@ -57,6 +57,13 @@ public class Mngt01Controller extends ApplicationController {
List<DataObject> allSggList = sggDeptService.getSigunguList(new SigunguQuery()); List<DataObject> allSggList = sggDeptService.getSigunguList(new SigunguQuery());
mav.addObject("sggList", allSggList); 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; return mav;
} }
@ -82,6 +89,12 @@ public class Mngt01Controller extends ApplicationController {
req.setUserSggCd(currentUser.getOrgID()); req.setUserSggCd(currentUser.getOrgID());
req.setUserCntnSeCd(currentUser.getCntnSeCd()); req.setUserCntnSeCd(currentUser.getCntnSeCd());
} }
if(currentUser.getCntnSeCd().equals("01")) {
mav.addObject("isPublicOfficer", true);
} else {
mav.addObject("isPublicOfficer", false);
}
List<DataObject> list = ntcService.getNtcList(req); List<DataObject> list = ntcService.getNtcList(req);
return setPagingInfo(mav, list, ""); return setPagingInfo(mav, list, "");

Loading…
Cancel
Save