diff --git a/src/main/java/kcc/let/uss/notify/service/NotifyManageService.java b/src/main/java/kcc/let/uss/notify/service/NotifyManageService.java index 0c6879ce..c0a945b4 100644 --- a/src/main/java/kcc/let/uss/notify/service/NotifyManageService.java +++ b/src/main/java/kcc/let/uss/notify/service/NotifyManageService.java @@ -57,6 +57,8 @@ public interface NotifyManageService { void insertNotifyAsgnmCnfrmForInstr(LoginVO loginVO, String eduAplctOrd, String eduChasiOrd, String asgnmAprvlCd) throws FdlException; + int selectNotifyCnt(String uniqId); + } diff --git a/src/main/java/kcc/let/uss/notify/service/impl/NotifyManageDAO.java b/src/main/java/kcc/let/uss/notify/service/impl/NotifyManageDAO.java index b7afafdc..a6d89fd0 100644 --- a/src/main/java/kcc/let/uss/notify/service/impl/NotifyManageDAO.java +++ b/src/main/java/kcc/let/uss/notify/service/impl/NotifyManageDAO.java @@ -78,5 +78,9 @@ public class NotifyManageDAO extends EgovAbstractDAO { return (String) select("VEANotifyDAO.selectNotifyInstr", notifyManageVO); } + public int selectNotifyCnt(String uniqId) { + return (int) select("VEANotifyDAO.selectNotifyCnt", uniqId); + } + } diff --git a/src/main/java/kcc/let/uss/notify/service/impl/NotifyManageServiceImpl.java b/src/main/java/kcc/let/uss/notify/service/impl/NotifyManageServiceImpl.java index 433a6f6e..272cffab 100644 --- a/src/main/java/kcc/let/uss/notify/service/impl/NotifyManageServiceImpl.java +++ b/src/main/java/kcc/let/uss/notify/service/impl/NotifyManageServiceImpl.java @@ -379,4 +379,9 @@ public class NotifyManageServiceImpl extends EgovAbstractServiceImpl implements public void updateNotifyChkWhereCmmNotifyOrd(String cmmNotifyOrd) { notifyManageDAO.updateNotifyChkWhereCmmNotifyOrd(cmmNotifyOrd); } + + @Override + public int selectNotifyCnt(String uniqId) { + return notifyManageDAO.selectNotifyCnt(uniqId); + } } diff --git a/src/main/java/kcc/web/MainController.java b/src/main/java/kcc/web/MainController.java index 3df002a5..5184d003 100644 --- a/src/main/java/kcc/web/MainController.java +++ b/src/main/java/kcc/web/MainController.java @@ -94,6 +94,7 @@ import kcc.let.sym.prm.service.ProgrmManageVO; import kcc.let.sym.site.service.EgovSiteManagerService; import kcc.let.sym.site.service.SiteManagerVO; import kcc.let.uat.uia.service.SsoLoginVO; +import kcc.let.uss.notify.service.NotifyManageService; import kcc.ve.instr.tngrVisitEdu.instrInfo.service.VEInstrDetailVO; import kcc.ve.instr.tngrVisitEdu.instrInfo.service.VEInstrService; @@ -180,6 +181,10 @@ public class MainController { @Resource(name="EgovFileMngUtil") private EgovFileMngUtil fileUtil; + + //알림 서비스 + @Resource(name = "NotifyManageService") + private NotifyManageService notifyManageService; //강사 정보 @Resource(name="vEInstrService") @@ -611,6 +616,13 @@ public class MainController { model.addAttribute("modifyUrl", modifyUrl); model.addAttribute("environment", environment); //로그인, 회원가입 URL 환경에 따른 구분 ex) local, dev, svr + if(loginVO != null) + { + int cnt = notifyManageService.selectNotifyCnt(loginVO.getUniqId()); + System.out.println("cnt : "+ cnt); + model.addAttribute("notifyCnt", cnt); //로그인, 회원가입 URL 환경에 따른 구분 ex) local, dev, svr + + } return "web/com/webCommonHeader"; } diff --git a/src/main/resources/egovframework/sqlmap/let/sym/ccm/notify/VEANotify_SQL_Tibero.xml b/src/main/resources/egovframework/sqlmap/let/sym/ccm/notify/VEANotify_SQL_Tibero.xml index d849c635..a29a3f0a 100644 --- a/src/main/resources/egovframework/sqlmap/let/sym/ccm/notify/VEANotify_SQL_Tibero.xml +++ b/src/main/resources/egovframework/sqlmap/let/sym/ccm/notify/VEANotify_SQL_Tibero.xml @@ -144,6 +144,16 @@ + + \ No newline at end of file diff --git a/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp b/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp index c5162768..bc42efea 100644 --- a/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp +++ b/src/main/webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp @@ -206,7 +206,7 @@ function usrJoin(){ --%>
알림28
+