From 1b67a6ea2f4f15ed58fb03724d020918455dda8c Mon Sep 17 00:00:00 2001 From: hylee Date: Mon, 18 Dec 2023 16:46:32 +0900 Subject: [PATCH] =?UTF-8?q?=EC=B2=B4=ED=97=98=EA=B5=90=EC=8B=A4=20?= =?UTF-8?q?=EC=95=8C=EB=A6=BC=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../notify/service/NotifyManageService.java | 2 + .../service/impl/NotifyManageServiceImpl.java | 45 ++++++++++++++++++- .../impl/EduAplctAdultServiceImpl.java | 1 - .../impl/ExprnClsrmAplctServiceImpl.java | 8 +++- 4 files changed, 52 insertions(+), 4 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 5c01c3d2..bc090464 100644 --- a/src/main/java/kcc/let/uss/notify/service/NotifyManageService.java +++ b/src/main/java/kcc/let/uss/notify/service/NotifyManageService.java @@ -35,6 +35,8 @@ public interface NotifyManageService { void mngDel(NotifyManageVO notifyManageVO); void insertNotifyEduForAdmin(String userId, String eduAplctOrd, List eduChasiOrdList, String lctrDivCd) throws FdlException; + + void insertNotifyClsrmForAdmin(String userId, String eduAplctOrd, String lctrDivCd) throws FdlException; List selectPagingList(NotifyManageVO notifyManageVO); 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 541e7689..a9eb6543 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 @@ -70,7 +70,10 @@ public class NotifyManageServiceImpl extends EgovAbstractServiceImpl implements public void mngDel(NotifyManageVO notifyManageVO) { notifyManageDAO.mngDel(notifyManageVO); } - + + /* + * @청소년 찾교 사용자 등록 -> 관리자 알림 + */ @Override public void insertNotifyEduForAdmin(String userId, String eduAplctOrd, List eduChasiOrdList, String lctrDivCd) throws FdlException { @@ -80,6 +83,7 @@ public class NotifyManageServiceImpl extends EgovAbstractServiceImpl implements p_VO.setLctrDivCd(lctrDivCd); p_VO.setFirstIndex(0); p_VO.setRecordCountPerPage(1000); + // 담당자 조회 List notifyManageListVO = notifyManageDAO.selectMngPagingList(p_VO); // for(String chasi : eduChasiOrdList) { @@ -87,12 +91,15 @@ public class NotifyManageServiceImpl extends EgovAbstractServiceImpl implements NotifyManageVO notifyManageVO = new NotifyManageVO(); notifyManageVO.setCmmNotifyOrd(veaCmmNotifyOrdGnrService.getNextStringId()); notifyManageVO.setLctrDivCd(lctrDivCd); - notifyManageVO.setNotifyCn("["+userId+"]["+eduChasiOrdList.size()+"차시] 교육신청을 하였습니다."); + notifyManageVO.setNotifyCn("["+userId+"]["+eduChasiOrdList.size()+"개 차시] 교육신청을 하였습니다."); String notifyPath = ""; if("10".equals(lctrDivCd)) notifyPath = "/kccadr/oprtn/tngrVisitEdu/eduAplctMngDetail.do"; if("20".equals(lctrDivCd)) notifyPath = "/kccadr/oprtn/adultVisitEdu/eduAplctMngDetail.do"; + if("30".equals(lctrDivCd)) + notifyPath = "/kccadr/oprtn/cpyrgExprnClsrm/oprtnAplctMngDetail.do"; + notifyManageVO.setNotifyPath(notifyPath); notifyManageVO.setNotifyChk("N"); notifyManageVO.setEduAplctOrd(eduAplctOrd); @@ -106,6 +113,40 @@ public class NotifyManageServiceImpl extends EgovAbstractServiceImpl implements } + /* + * @체험교실 사용자 등록 -> 관리자 알림 + */ + @Override + public void insertNotifyClsrmForAdmin(String userId, String eduAplctOrd, String lctrDivCd) throws FdlException { + + + // 담당자 ID 가져오기 + NotifyManageVO p_VO = new NotifyManageVO(); + p_VO.setLctrDivCd(lctrDivCd); + p_VO.setFirstIndex(0); + p_VO.setRecordCountPerPage(1000); + // 담당자 조회 + List notifyManageListVO = notifyManageDAO.selectMngPagingList(p_VO); + + + NotifyManageVO notifyManageVO = new NotifyManageVO(); + notifyManageVO.setCmmNotifyOrd(veaCmmNotifyOrdGnrService.getNextStringId()); + notifyManageVO.setLctrDivCd(lctrDivCd); + notifyManageVO.setNotifyCn("["+userId+"] 교육신청을 하였습니다."); + String notifyPath = ""; + notifyPath = "/kccadr/oprtn/cpyrgExprnClsrm/oprtnAplctMngDetail.do"; + + notifyManageVO.setNotifyPath(notifyPath); + notifyManageVO.setNotifyChk("N"); + notifyManageVO.setEduAplctOrd(eduAplctOrd); + notifyManageVO.setFrstRegisterId(userId); + for(NotifyManageVO vo : notifyManageListVO) { + notifyManageVO.setToUserId(vo.getMngUserId()); + notifyManageDAO.insertNotifyEduForAdmin(notifyManageVO); + } + + } + @Override public List selectPagingList(NotifyManageVO notifyManageVO) { return notifyManageDAO.selectPagingList(notifyManageVO); diff --git a/src/main/java/kcc/ve/aplct/adultVisitEdu/eduAplct/service/impl/EduAplctAdultServiceImpl.java b/src/main/java/kcc/ve/aplct/adultVisitEdu/eduAplct/service/impl/EduAplctAdultServiceImpl.java index 5f904518..95df9d9c 100644 --- a/src/main/java/kcc/ve/aplct/adultVisitEdu/eduAplct/service/impl/EduAplctAdultServiceImpl.java +++ b/src/main/java/kcc/ve/aplct/adultVisitEdu/eduAplct/service/impl/EduAplctAdultServiceImpl.java @@ -53,7 +53,6 @@ public class EduAplctAdultServiceImpl implements EduAplctAdultService { @Resource(name = "NotifyManageService") private NotifyManageService notifyManageService; - //과정 관리 @Resource(name = "vEPrcsService") private VEPrcsService vEPrcsService; diff --git a/src/main/java/kcc/ve/aplct/cpyrgExprnClsrm/exprnClsrmAplct/service/impl/ExprnClsrmAplctServiceImpl.java b/src/main/java/kcc/ve/aplct/cpyrgExprnClsrm/exprnClsrmAplct/service/impl/ExprnClsrmAplctServiceImpl.java index 42eb511f..2dcf278b 100644 --- a/src/main/java/kcc/ve/aplct/cpyrgExprnClsrm/exprnClsrmAplct/service/impl/ExprnClsrmAplctServiceImpl.java +++ b/src/main/java/kcc/ve/aplct/cpyrgExprnClsrm/exprnClsrmAplct/service/impl/ExprnClsrmAplctServiceImpl.java @@ -16,6 +16,7 @@ import kcc.com.cmm.service.EgovFileMngService; import kcc.com.cmm.service.FileVO; import kcc.com.utl.user.service.CheckFileUtil; import kcc.com.utl.user.service.CheckLoginUtil; +import kcc.let.uss.notify.service.NotifyManageService; import kcc.let.utl.fcc.service.EgovCryptoUtil; import kcc.ve.aplct.cpyrgExprnClsrm.exprnClsrmAplct.service.ExprnClsrmAplctService; import kcc.ve.cmm.VeConstants; @@ -51,6 +52,9 @@ public class ExprnClsrmAplctServiceImpl implements ExprnClsrmAplctService { @Resource(name = "EgovFileMngService") private EgovFileMngService fileService; + //알림 서비스 + @Resource(name = "NotifyManageService") + private NotifyManageService notifyManageService; //과정 관리 @Resource(name = "vEPrcsService") @@ -130,11 +134,13 @@ public class ExprnClsrmAplctServiceImpl implements ExprnClsrmAplctService { VEEduOprtnVO oprtn = new VEEduOprtnVO(); - // 데이터 카피 + // 데이터 카피 BeanUtils.copyProperties(vEEduAplctVO, oprtn); oprtn.setOprtnFileId(s_scholSealAtchFileId); // 저작권 등록 veEduOprtnService.insert(oprtn); + // 성인 교육 신청 성공시 노티 insert + notifyManageService.insertNotifyClsrmForAdmin(loginVO.getMembId(), eduAplctOrd, vEEduAplctVO.getLctrDivCd()); return true; }