체험교실 알림 추가
This commit is contained in:
parent
9c1b1f4689
commit
1b67a6ea2f
@ -35,6 +35,8 @@ public interface NotifyManageService {
|
|||||||
void mngDel(NotifyManageVO notifyManageVO);
|
void mngDel(NotifyManageVO notifyManageVO);
|
||||||
|
|
||||||
void insertNotifyEduForAdmin(String userId, String eduAplctOrd, List<String> eduChasiOrdList, String lctrDivCd) throws FdlException;
|
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);
|
List<NotifyManageVO> selectPagingList(NotifyManageVO notifyManageVO);
|
||||||
|
|
||||||
|
|||||||
@ -70,7 +70,10 @@ public class NotifyManageServiceImpl extends EgovAbstractServiceImpl implements
|
|||||||
public void mngDel(NotifyManageVO notifyManageVO) {
|
public void mngDel(NotifyManageVO notifyManageVO) {
|
||||||
notifyManageDAO.mngDel(notifyManageVO);
|
notifyManageDAO.mngDel(notifyManageVO);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @청소년 찾교 사용자 등록 -> 관리자 알림
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void insertNotifyEduForAdmin(String userId, String eduAplctOrd, List<String> eduChasiOrdList, String lctrDivCd) throws FdlException {
|
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.setLctrDivCd(lctrDivCd);
|
||||||
p_VO.setFirstIndex(0);
|
p_VO.setFirstIndex(0);
|
||||||
p_VO.setRecordCountPerPage(1000);
|
p_VO.setRecordCountPerPage(1000);
|
||||||
|
// 담당자 조회
|
||||||
List<NotifyManageVO> notifyManageListVO = notifyManageDAO.selectMngPagingList(p_VO);
|
List<NotifyManageVO> notifyManageListVO = notifyManageDAO.selectMngPagingList(p_VO);
|
||||||
|
|
||||||
// for(String chasi : eduChasiOrdList) {
|
// for(String chasi : eduChasiOrdList) {
|
||||||
@ -87,12 +91,15 @@ public class NotifyManageServiceImpl extends EgovAbstractServiceImpl implements
|
|||||||
NotifyManageVO notifyManageVO = new NotifyManageVO();
|
NotifyManageVO notifyManageVO = new NotifyManageVO();
|
||||||
notifyManageVO.setCmmNotifyOrd(veaCmmNotifyOrdGnrService.getNextStringId());
|
notifyManageVO.setCmmNotifyOrd(veaCmmNotifyOrdGnrService.getNextStringId());
|
||||||
notifyManageVO.setLctrDivCd(lctrDivCd);
|
notifyManageVO.setLctrDivCd(lctrDivCd);
|
||||||
notifyManageVO.setNotifyCn("["+userId+"]["+eduChasiOrdList.size()+"차시] 교육신청을 하였습니다.");
|
notifyManageVO.setNotifyCn("["+userId+"]["+eduChasiOrdList.size()+"개 차시] 교육신청을 하였습니다.");
|
||||||
String notifyPath = "";
|
String notifyPath = "";
|
||||||
if("10".equals(lctrDivCd))
|
if("10".equals(lctrDivCd))
|
||||||
notifyPath = "/kccadr/oprtn/tngrVisitEdu/eduAplctMngDetail.do";
|
notifyPath = "/kccadr/oprtn/tngrVisitEdu/eduAplctMngDetail.do";
|
||||||
if("20".equals(lctrDivCd))
|
if("20".equals(lctrDivCd))
|
||||||
notifyPath = "/kccadr/oprtn/adultVisitEdu/eduAplctMngDetail.do";
|
notifyPath = "/kccadr/oprtn/adultVisitEdu/eduAplctMngDetail.do";
|
||||||
|
if("30".equals(lctrDivCd))
|
||||||
|
notifyPath = "/kccadr/oprtn/cpyrgExprnClsrm/oprtnAplctMngDetail.do";
|
||||||
|
|
||||||
notifyManageVO.setNotifyPath(notifyPath);
|
notifyManageVO.setNotifyPath(notifyPath);
|
||||||
notifyManageVO.setNotifyChk("N");
|
notifyManageVO.setNotifyChk("N");
|
||||||
notifyManageVO.setEduAplctOrd(eduAplctOrd);
|
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
|
@Override
|
||||||
public List<NotifyManageVO> selectPagingList(NotifyManageVO notifyManageVO) {
|
public List<NotifyManageVO> selectPagingList(NotifyManageVO notifyManageVO) {
|
||||||
return notifyManageDAO.selectPagingList(notifyManageVO);
|
return notifyManageDAO.selectPagingList(notifyManageVO);
|
||||||
|
|||||||
@ -53,7 +53,6 @@ public class EduAplctAdultServiceImpl implements EduAplctAdultService {
|
|||||||
@Resource(name = "NotifyManageService")
|
@Resource(name = "NotifyManageService")
|
||||||
private NotifyManageService notifyManageService;
|
private NotifyManageService notifyManageService;
|
||||||
|
|
||||||
|
|
||||||
//과정 관리
|
//과정 관리
|
||||||
@Resource(name = "vEPrcsService")
|
@Resource(name = "vEPrcsService")
|
||||||
private VEPrcsService vEPrcsService;
|
private VEPrcsService vEPrcsService;
|
||||||
|
|||||||
@ -16,6 +16,7 @@ import kcc.com.cmm.service.EgovFileMngService;
|
|||||||
import kcc.com.cmm.service.FileVO;
|
import kcc.com.cmm.service.FileVO;
|
||||||
import kcc.com.utl.user.service.CheckFileUtil;
|
import kcc.com.utl.user.service.CheckFileUtil;
|
||||||
import kcc.com.utl.user.service.CheckLoginUtil;
|
import kcc.com.utl.user.service.CheckLoginUtil;
|
||||||
|
import kcc.let.uss.notify.service.NotifyManageService;
|
||||||
import kcc.let.utl.fcc.service.EgovCryptoUtil;
|
import kcc.let.utl.fcc.service.EgovCryptoUtil;
|
||||||
import kcc.ve.aplct.cpyrgExprnClsrm.exprnClsrmAplct.service.ExprnClsrmAplctService;
|
import kcc.ve.aplct.cpyrgExprnClsrm.exprnClsrmAplct.service.ExprnClsrmAplctService;
|
||||||
import kcc.ve.cmm.VeConstants;
|
import kcc.ve.cmm.VeConstants;
|
||||||
@ -51,6 +52,9 @@ public class ExprnClsrmAplctServiceImpl implements ExprnClsrmAplctService {
|
|||||||
@Resource(name = "EgovFileMngService")
|
@Resource(name = "EgovFileMngService")
|
||||||
private EgovFileMngService fileService;
|
private EgovFileMngService fileService;
|
||||||
|
|
||||||
|
//알림 서비스
|
||||||
|
@Resource(name = "NotifyManageService")
|
||||||
|
private NotifyManageService notifyManageService;
|
||||||
|
|
||||||
//과정 관리
|
//과정 관리
|
||||||
@Resource(name = "vEPrcsService")
|
@Resource(name = "vEPrcsService")
|
||||||
@ -130,11 +134,13 @@ public class ExprnClsrmAplctServiceImpl implements ExprnClsrmAplctService {
|
|||||||
|
|
||||||
VEEduOprtnVO oprtn = new VEEduOprtnVO();
|
VEEduOprtnVO oprtn = new VEEduOprtnVO();
|
||||||
|
|
||||||
// 데이터 카피
|
// 데이터 카피
|
||||||
BeanUtils.copyProperties(vEEduAplctVO, oprtn);
|
BeanUtils.copyProperties(vEEduAplctVO, oprtn);
|
||||||
oprtn.setOprtnFileId(s_scholSealAtchFileId);
|
oprtn.setOprtnFileId(s_scholSealAtchFileId);
|
||||||
// 저작권 등록
|
// 저작권 등록
|
||||||
veEduOprtnService.insert(oprtn);
|
veEduOprtnService.insert(oprtn);
|
||||||
|
// 성인 교육 신청 성공시 노티 insert
|
||||||
|
notifyManageService.insertNotifyClsrmForAdmin(loginVO.getMembId(), eduAplctOrd, vEEduAplctVO.getLctrDivCd());
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user