From 473791b65af7743b96451675859c36738bab2b33 Mon Sep 17 00:00:00 2001 From: hylee Date: Wed, 20 Dec 2023 12:24:56 +0900 Subject: [PATCH] =?UTF-8?q?=EC=83=81=EB=8B=A8=20=EC=95=8C=EB=A6=BC=20?= =?UTF-8?q?=EC=9D=B4=EB=AF=B8=EC=A7=80=20=EC=B9=B4=EC=9A=B4=ED=84=B0=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../let/uss/notify/service/NotifyManageService.java | 2 ++ .../let/uss/notify/service/impl/NotifyManageDAO.java | 4 ++++ .../notify/service/impl/NotifyManageServiceImpl.java | 5 +++++ src/main/java/kcc/web/MainController.java | 12 ++++++++++++ .../let/sym/ccm/notify/VEANotify_SQL_Tibero.xml | 10 ++++++++++ .../webapp/WEB-INF/jsp/web/com/webCommonHeader.jsp | 12 ++++++------ 6 files changed, 39 insertions(+), 6 deletions(-) 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(){ --%>
- + @@ -269,7 +269,7 @@ function usrJoin(){ --%>
- + @@ -302,17 +302,17 @@ function usrJoin(){ -

알림28

+

알림">${notifyCnt }

-

알림28

+

알림">${notifyCnt }

-

알림28

+

알림">${notifyCnt }

@@ -320,7 +320,7 @@ function usrJoin(){ -

알림28

+

알림">${notifyCnt }