체험교실 알림 추가

This commit is contained in:
hylee 2023-12-18 16:46:32 +09:00
parent 9c1b1f4689
commit 1b67a6ea2f
4 changed files with 52 additions and 4 deletions

View File

@ -36,6 +36,8 @@ public interface NotifyManageService {
void insertNotifyEduForAdmin(String userId, String eduAplctOrd, List<String> eduChasiOrdList, String lctrDivCd) throws FdlException;
void insertNotifyClsrmForAdmin(String userId, String eduAplctOrd, String lctrDivCd) throws FdlException;
List<NotifyManageVO> selectPagingList(NotifyManageVO notifyManageVO);
NotifyManageVO findById(NotifyManageVO notifyManageVO);

View File

@ -71,6 +71,9 @@ public class NotifyManageServiceImpl extends EgovAbstractServiceImpl implements
notifyManageDAO.mngDel(notifyManageVO);
}
/*
* @청소년 찾교 사용자 등록 -> 관리자 알림
*/
@Override
public void insertNotifyEduForAdmin(String userId, String eduAplctOrd, List<String> 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<NotifyManageVO> 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<NotifyManageVO> 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<NotifyManageVO> selectPagingList(NotifyManageVO notifyManageVO) {
return notifyManageDAO.selectPagingList(notifyManageVO);

View File

@ -53,7 +53,6 @@ public class EduAplctAdultServiceImpl implements EduAplctAdultService {
@Resource(name = "NotifyManageService")
private NotifyManageService notifyManageService;
//과정 관리
@Resource(name = "vEPrcsService")
private VEPrcsService vEPrcsService;

View File

@ -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")
@ -135,6 +139,8 @@ public class ExprnClsrmAplctServiceImpl implements ExprnClsrmAplctService {
oprtn.setOprtnFileId(s_scholSealAtchFileId);
// 저작권 등록
veEduOprtnService.insert(oprtn);
// 성인 교육 신청 성공시 노티 insert
notifyManageService.insertNotifyClsrmForAdmin(loginVO.getMembId(), eduAplctOrd, vEEduAplctVO.getLctrDivCd());
return true;
}