2024-02-05 11:07 설문 기간 지난 답변 내용 출력용
This commit is contained in:
parent
fdb840a0ca
commit
73ca5f10ed
@ -42,6 +42,8 @@ public class QustnrCommonUtil {
|
||||
, String p_qestnrTmplatId
|
||||
, VEALettnQestnrMIXService p_vEALettnQestnrMIXService
|
||||
, EgovQustnrRespondInfoService p_egovQustnrRespondInfoService
|
||||
, String p_eduAplctOrd
|
||||
, String p_eduChasiOrd
|
||||
)throws Exception{
|
||||
//설문 문항 정보
|
||||
{
|
||||
@ -50,6 +52,8 @@ public class QustnrCommonUtil {
|
||||
VEAQestnrVO vEAQestnrVO = new VEAQestnrVO();
|
||||
vEAQestnrVO.setSiteId(p_siteId); //청소년
|
||||
vEAQestnrVO.setSiteIdCd(p_siteIdCd); //10-기본설문, 20-신청자설문, 30-강사설문
|
||||
vEAQestnrVO.setEduAplctOrd(p_eduAplctOrd);
|
||||
vEAQestnrVO.setEduChasiOrd(p_eduChasiOrd);
|
||||
vEAQestnrVO = p_vEALettnQestnrMIXService.selectDetail_MIX_LQI_02(vEAQestnrVO);
|
||||
|
||||
//문항정보
|
||||
|
||||
101
src/main/java/kcc/let/utl/fcc/service/ITNotiUtil.java
Normal file
101
src/main/java/kcc/let/utl/fcc/service/ITNotiUtil.java
Normal file
@ -0,0 +1,101 @@
|
||||
package kcc.let.utl.fcc.service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import kcc.let.uss.notify.service.NotifyManageService;
|
||||
import kcc.let.uss.notify.service.NotifyManageVO;
|
||||
|
||||
/**
|
||||
*
|
||||
* egov crypto 에 대한 Util 클래스
|
||||
* @author 사업기술본부 조용준(ITN)
|
||||
* @since 2021.07.16
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* << 개정이력(Modification Information) >>
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2021.07.16 조용준 최초 생성 *
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Component("iTNotiUtil")
|
||||
public class ITNotiUtil {
|
||||
//private static final Logger LOGGER = LoggerFactory.getLogger(ITNotiUtil.class);
|
||||
|
||||
//알림
|
||||
@Resource(name = "NotifyManageService")
|
||||
private NotifyManageService notifyManageService;
|
||||
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
//
|
||||
// VO 별 암/복호화
|
||||
//
|
||||
// 1.VEEduAplctVO
|
||||
//
|
||||
|
||||
//VEEduAplctVO - 암호화
|
||||
public void insertNotifyNew(
|
||||
//NotifyManageService p_notifyManageService
|
||||
String p_lctrDivCd //VE0008 10-청소년, 20-성인,30-체험,50-실무,60-기수
|
||||
, String p_RegisterId //등록자ID
|
||||
|
||||
, String p_noti_status_cd
|
||||
|
||||
, String p_eduAplctOrd
|
||||
, String p_eduChasiOrd
|
||||
|
||||
, String p_move_param_type //페이지 이동에 사용하는 파라미터 설정 타입
|
||||
// 0-no param(sms, email),
|
||||
// 1-eduAplctOrd,
|
||||
// 2-eduAplctOrd & eduChasiOrd
|
||||
, String p_noti_param_type //알림 대상자 선별을 위한 파라미터 타입
|
||||
// 0-no param(sms, email),
|
||||
// 1-eduAplctOrd,
|
||||
// 2-eduAplctOrd & eduChasiOrd
|
||||
|
||||
){
|
||||
|
||||
try {
|
||||
//new - 2024.02.02
|
||||
NotifyManageVO notifyManageVO = new NotifyManageVO();
|
||||
notifyManageVO.setLctrDivCd(p_lctrDivCd); //VE0008 10-청소년, 20-성인,30-체험,50-실무,60-기수
|
||||
notifyManageVO.setFrstRegisterId(p_RegisterId); //등록자 정보
|
||||
|
||||
//페이지 이동에 필요한 파라미터 설정
|
||||
if("1".equals(p_move_param_type)) {
|
||||
notifyManageVO.setParams("eduAplctOrd:"+p_eduAplctOrd); //ex)edu_aplct_ord:edu_001,edu_chasi_ord:edu_cha_001
|
||||
|
||||
}else if("2".equals(p_move_param_type)) {
|
||||
notifyManageVO.setParams("eduAplctOrd:"+p_eduAplctOrd+",eduChasiOrd:"+p_eduChasiOrd);
|
||||
//ex)edu_aplct_ord:edu_001,edu_chasi_ord:edu_cha_001
|
||||
}
|
||||
|
||||
|
||||
//알림 대상자 선정에 필요한 파라미터 설정
|
||||
if("1".equals(p_move_param_type)) {
|
||||
notifyManageVO.setEduAplctOrd(p_eduAplctOrd);
|
||||
|
||||
}else if("2".equals(p_move_param_type)) {
|
||||
notifyManageVO.setEduAplctOrd(p_eduAplctOrd);
|
||||
notifyManageVO.setEduChasiOrd(p_eduChasiOrd);
|
||||
}
|
||||
|
||||
|
||||
//new 알림-2024.02.02
|
||||
notifyManageService.insertNotifyNew(notifyManageVO, p_noti_status_cd); //교육신청 - 상태변경
|
||||
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -446,6 +446,8 @@ public class EduEndAdultController {
|
||||
, "QTMPLA_0000000000001"
|
||||
, vEALettnQestnrMIXService
|
||||
, egovQustnrRespondInfoService
|
||||
, vEEduAplctVO.getEduAplctOrd()
|
||||
, vEEduAplctVO.getEduChasiOrd()
|
||||
);
|
||||
|
||||
}catch(Exception ex) {
|
||||
|
||||
@ -776,6 +776,8 @@ public class FndtnEnhanceTrnController {
|
||||
, "QTMPLA_0000000000001"
|
||||
, vEALettnQestnrMIXService
|
||||
, egovQustnrRespondInfoService
|
||||
, vEPrcsDetailVO.getEduAplctOrd()
|
||||
, vEPrcsDetailVO.getEduChasiOrd()
|
||||
);
|
||||
|
||||
}catch(Exception ex) {
|
||||
|
||||
@ -505,6 +505,8 @@ public class EduEndTngrController {
|
||||
, "QTMPLA_0000000000001"
|
||||
, vEALettnQestnrMIXService
|
||||
, egovQustnrRespondInfoService
|
||||
, vEEduAplctVO.getEduAplctOrd()
|
||||
, vEEduAplctVO.getEduChasiOrd()
|
||||
);
|
||||
|
||||
}catch(Exception ex) {
|
||||
|
||||
@ -281,6 +281,8 @@ public class EduRsltMngAdultController {
|
||||
, "QTMPLA_0000000000001"
|
||||
, vEALettnQestnrMIXService
|
||||
, egovQustnrRespondInfoService
|
||||
, vEEduAplctVO.getEduAplctOrd()
|
||||
, vEEduAplctVO.getEduChasiOrd()
|
||||
);
|
||||
|
||||
}catch(Exception ex) {
|
||||
@ -372,6 +374,8 @@ public class EduRsltMngAdultController {
|
||||
, "QTMPLA_0000000000001"
|
||||
, vEALettnQestnrMIXService
|
||||
, egovQustnrRespondInfoService
|
||||
, vEEduAplctVO.getEduAplctOrd()
|
||||
, vEEduAplctVO.getEduChasiOrd()
|
||||
);
|
||||
|
||||
}catch(Exception ex) {
|
||||
|
||||
@ -19,6 +19,7 @@ import kcc.let.uss.notify.service.NotifyManageService;
|
||||
import kcc.let.uss.notify.service.NotifyManageVO;
|
||||
import kcc.let.uss.umt.service.EgovUserManageService;
|
||||
import kcc.let.uss.umt.service.UserManageVO;
|
||||
import kcc.let.utl.fcc.service.ITNotiUtil;
|
||||
import kcc.ve.adv.tngr.stngInfo.service.VEAStngService;
|
||||
import kcc.ve.adv.tngr.stngInfo.service.VEAStngVO;
|
||||
import kcc.ve.aplct.cpyrgExprnClsrm.exprnClsrmAplct.service.ScholInfoMIXService;
|
||||
@ -74,6 +75,11 @@ public class CommonManageWebController {
|
||||
//알림
|
||||
@Resource(name = "NotifyManageService")
|
||||
private NotifyManageService notifyManageService;
|
||||
|
||||
//알림
|
||||
@Resource(name = "iTNotiUtil")
|
||||
private ITNotiUtil iTNotiUtil;
|
||||
|
||||
|
||||
/**
|
||||
* 학교정보 검색 팝업 리스트
|
||||
@ -182,6 +188,19 @@ public class CommonManageWebController {
|
||||
//old
|
||||
//notifyManageService.insertNotifyAprvlCdForUser(loginVO, vEEduAplctVO.getEduAplctOrd(), vEEduAplctVO.getLctrDivCd(), vEEduAplctVO.getAprvlCd());
|
||||
|
||||
iTNotiUtil.insertNotifyNew(
|
||||
vEEduAplctVO.getLctrDivCd(),
|
||||
loginVO.getUniqId(),
|
||||
VeConstants.NOTI_STATUS_11,
|
||||
vEEduAplctVO.getEduAplctOrd(),
|
||||
vEEduAplctVO.getEduChasiOrd(),
|
||||
"1",
|
||||
"1"
|
||||
);
|
||||
|
||||
/*
|
||||
iTNotiUtil.insertNotifyNew(p_notifyManageService, p_lctrDivCd, p_RegisterId, p_noti_status_cd, p_eduAplctOrd, p_eduChasiOrd, p_move_param_type, p_noti_param_type);
|
||||
|
||||
try {
|
||||
//new - 2024.02.02
|
||||
NotifyManageVO notifyManageVO = new NotifyManageVO();
|
||||
@ -201,13 +220,14 @@ public class CommonManageWebController {
|
||||
//알림 대상자 선정에 필요한 파라미터 설정
|
||||
notifyManageVO.setEduAplctOrd(vEEduAplctVO.getEduAplctOrd());
|
||||
}
|
||||
|
||||
a
|
||||
//new 알림-2024.02.02
|
||||
notifyManageService.insertNotifyNew(notifyManageVO, VeConstants.NOTI_STATUS_11); //교육신청 - 상태변경
|
||||
|
||||
}catch(Exception ex) {
|
||||
ex.printStackTrace();
|
||||
}
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -480,6 +480,8 @@ public class EduRsltMngTngrController {
|
||||
, "QTMPLA_0000000000001"
|
||||
, vEALettnQestnrMIXService
|
||||
, egovQustnrRespondInfoService
|
||||
, vEEduAplctVO.getEduAplctOrd()
|
||||
, vEEduAplctVO.getEduChasiOrd()
|
||||
);
|
||||
|
||||
}catch(Exception ex) {
|
||||
@ -708,6 +710,8 @@ public class EduRsltMngTngrController {
|
||||
, "QTMPLA_0000000000001"
|
||||
, vEALettnQestnrMIXService
|
||||
, egovQustnrRespondInfoService
|
||||
, vEEduAplctVO.getEduAplctOrd()
|
||||
, vEEduAplctVO.getEduChasiOrd()
|
||||
);
|
||||
/*
|
||||
model = this._qustnrQesItm(
|
||||
|
||||
@ -4530,9 +4530,15 @@
|
||||
, A.rslt_atch_file_id AS rsltAtchFileId
|
||||
|
||||
, I10.qustnr_tmplat_id AS qustnrTmplatId
|
||||
/*
|
||||
, I10.qestnr_id_10 AS qestnrId10
|
||||
, I20.qestnr_id_20 AS qestnrId20
|
||||
, I30.qestnr_id_30 AS qestnrId30
|
||||
*/
|
||||
|
||||
, NVL(F.QESTNR_ID_10, I10.qestnr_id_10) AS qestnrId10
|
||||
, NVL(F.QESTNR_ID_20, I20.qestnr_id_20) AS qestnrId20
|
||||
, NVL(F.QESTNR_ID_30, I30.qestnr_id_30) AS qestnrId30
|
||||
|
||||
FROM
|
||||
VE_EDU_APLCT A
|
||||
@ -4577,6 +4583,10 @@
|
||||
, max(decode(a.site_id_cd,'30',b.QUSTNR_RESPOND_ID)) AS QUSTNR_RESPOND_ID_30
|
||||
, max(b.qestnr_participant_count) AS QESTNR_PARTICIPANT_COUNT
|
||||
|
||||
, max(decode(a.site_id_cd, '10', b.QESTNR_ID)) AS QESTNR_ID_10
|
||||
, max(decode(a.site_id_cd, '20', b.QESTNR_ID)) AS QESTNR_ID_20
|
||||
, max(decode(a.site_id_cd, '30', b.QESTNR_ID)) AS QESTNR_ID_30
|
||||
|
||||
FROM
|
||||
(
|
||||
SELECT a.EDU_APLCT_ORD
|
||||
|
||||
@ -123,6 +123,61 @@
|
||||
<select id="VEALettnQestnrMIXDAO.selectDetail_MIX_LQI_02" parameterClass="VEAQestnrVO" resultClass="VEAQestnrVO">
|
||||
/* VEALettnQestnrMIXDAO.selectDetail_MIX_LQI_02 */
|
||||
|
||||
SELECT A.QUSTNR_TMPLAT_ID AS qustnrTmplatId
|
||||
/*
|
||||
, A.QESTNR_ID AS qestnrId
|
||||
*/
|
||||
, NVL(B.QESTNR_ID,A.QESTNR_ID) AS qestnrId
|
||||
, A.SITE_ID AS siteId
|
||||
, A.site_id_cd AS siteIdCd
|
||||
|
||||
FROM LETTNQESTNRINFO A
|
||||
|
||||
LEFT OUTER JOIN (
|
||||
|
||||
SELECT
|
||||
a.QUSTNR_TMPLAT_ID ,
|
||||
a.QESTNR_ID
|
||||
FROM
|
||||
(
|
||||
SELECT
|
||||
b.QUSTNR_TMPLAT_ID ,
|
||||
b.QESTNR_ID
|
||||
FROM
|
||||
lettnqustnrrespondinfo b
|
||||
WHERE
|
||||
b.edu_aplct_ord=#eduAplctOrd#
|
||||
AND b.edu_chasi_ord=#eduChasiOrd#
|
||||
GROUP BY
|
||||
b.QUSTNR_TMPLAT_ID ,
|
||||
b.QESTNR_ID
|
||||
) b ,
|
||||
LETTNQESTNRINFO a
|
||||
WHERE
|
||||
a.QUSTNR_TMPLAT_ID = b.QUSTNR_TMPLAT_ID
|
||||
AND a.QESTNR_ID = b.QESTNR_ID
|
||||
AND a.site_id = #siteId#
|
||||
AND a.site_id_cd = #siteIdCd#
|
||||
|
||||
)b
|
||||
on(1=1)
|
||||
|
||||
WHERE 1 =1
|
||||
AND to_char(sysdate, 'YYYY.MM.DD') BETWEEN
|
||||
NVL(a.qustnr_bgnde,'2000.01.01') AND NVL(a.qustnr_endde,'9999.12.31')
|
||||
|
||||
AND A.SITE_ID = #siteId#
|
||||
AND A.site_id_cd=#siteIdCd#
|
||||
|
||||
ORDER BY A.QESTNR_ID DESC
|
||||
LIMIT 1
|
||||
|
||||
</select>
|
||||
|
||||
<!-- //설문지 정보 조건에 맞는 R -->
|
||||
<select id="VEALettnQestnrMIXDAO.selectDetail_MIX_LQI_02_bak" parameterClass="VEAQestnrVO" resultClass="VEAQestnrVO">
|
||||
/* VEALettnQestnrMIXDAO.selectDetail_MIX_LQI_02_bak */
|
||||
|
||||
SELECT A.QUSTNR_TMPLAT_ID AS qustnrTmplatId
|
||||
, A.QESTNR_ID AS qestnrId
|
||||
, A.SITE_ID AS siteId
|
||||
@ -140,7 +195,7 @@
|
||||
LIMIT 1
|
||||
|
||||
</select>
|
||||
|
||||
|
||||
<!-- //관리자 청소년/성인 만족도 평가 R -->
|
||||
<select id="VEALettnQestnrMIXDAO.selectDetail_MIX_LQI_03" parameterClass="VEAQestnrVO" resultClass="VEAQestnrVO">
|
||||
/* VEALettnQestnrMIXDAO.selectDetail_MIX_LQI_03 */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user