2024-03-05 15:23 성인 설문결과 중복으로 나오지 않도록 최근 하나의 결과 값만 가져옴
This commit is contained in:
parent
a7dabdfd6d
commit
4bbc0a4b1e
@ -354,6 +354,23 @@ public class CommonManageWebController {
|
|||||||
return modelAndView;
|
return modelAndView;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@RequestMapping(value="/eduAplctDeleteAjax.do")
|
||||||
|
public ModelAndView eduAplctDeleteAjax(HttpServletRequest request
|
||||||
|
, ModelMap model
|
||||||
|
, VEEduAplctVO vEEduAplctVO) throws Exception {
|
||||||
|
ModelAndView modelAndView = new ModelAndView();
|
||||||
|
modelAndView.setViewName("jsonView");
|
||||||
|
|
||||||
|
//권한에 따른 로그인 정보 가져오기
|
||||||
|
LoginVO loginVO = checkLoginUtil.getAuthLoginVO();
|
||||||
|
vEEduAplctVO.setLastUpdusrId(loginVO.getUniqId());
|
||||||
|
int rs = vEEduAplctService.delete(vEEduAplctVO);
|
||||||
|
|
||||||
|
modelAndView.addObject("rsCnt", rs);
|
||||||
|
modelAndView.addObject("result", "success");
|
||||||
|
return modelAndView;
|
||||||
|
}
|
||||||
|
|
||||||
//교육신청 리스트에서 일괄 상태변경 처리
|
//교육신청 리스트에서 일괄 상태변경 처리
|
||||||
@RequestMapping(value="/eduAplctStatusListAjax.do")
|
@RequestMapping(value="/eduAplctStatusListAjax.do")
|
||||||
public ModelAndView eduAplctStatusListAjax(HttpServletRequest request , ModelMap model , VEEduAplctVO veEduAplctVO) throws Exception {
|
public ModelAndView eduAplctStatusListAjax(HttpServletRequest request , ModelMap model , VEEduAplctVO veEduAplctVO) throws Exception {
|
||||||
|
|||||||
@ -472,6 +472,7 @@
|
|||||||
AND TO_CHAR(A.req_pnttm, 'YYYYMMDD') <![CDATA[ <= ]]> REPLACE(#searchSmbtEndDt#, '.' , '')
|
AND TO_CHAR(A.req_pnttm, 'YYYYMMDD') <![CDATA[ <= ]]> REPLACE(#searchSmbtEndDt#, '.' , '')
|
||||||
</isNotEmpty>
|
</isNotEmpty>
|
||||||
|
|
||||||
|
|
||||||
/* 관할청 멀티셀렉트 */
|
/* 관할청 멀티셀렉트 */
|
||||||
<isNotEmpty property="searchSelStatus">
|
<isNotEmpty property="searchSelStatus">
|
||||||
AND a.cmptnt_athrt IN
|
AND a.cmptnt_athrt IN
|
||||||
@ -479,6 +480,15 @@
|
|||||||
#searchSelStatusList[]#
|
#searchSelStatusList[]#
|
||||||
</iterate>
|
</iterate>
|
||||||
</isNotEmpty>
|
</isNotEmpty>
|
||||||
|
|
||||||
|
|
||||||
|
<isEmpty property="searchSelStatus">
|
||||||
|
<isNotEmpty property="srchCndt2">
|
||||||
|
AND a.cmptnt_athrt like #srchCndt2#||'%'
|
||||||
|
|
||||||
|
</isNotEmpty>
|
||||||
|
</isEmpty>
|
||||||
|
|
||||||
ORDER BY
|
ORDER BY
|
||||||
|
|
||||||
a.req_pnttm DESC
|
a.req_pnttm DESC
|
||||||
|
|||||||
@ -1081,7 +1081,7 @@
|
|||||||
DELETE FROM
|
DELETE FROM
|
||||||
<include refid="VEEduAplctDAO.table_name"/>
|
<include refid="VEEduAplctDAO.table_name"/>
|
||||||
WHERE
|
WHERE
|
||||||
a.edu_aplct_ord = #eduAplctOrd#
|
edu_aplct_ord = #eduAplctOrd#
|
||||||
|
|
||||||
</delete>
|
</delete>
|
||||||
|
|
||||||
|
|||||||
@ -226,15 +226,37 @@
|
|||||||
|
|
||||||
FROM LETTNQESTNRINFO a
|
FROM LETTNQESTNRINFO a
|
||||||
, LETTNQUSTNRQESITM b
|
, LETTNQUSTNRQESITM b
|
||||||
LEFT OUTER join LETTNQESTNRRSLTDetail c
|
LEFT OUTER join (
|
||||||
|
|
||||||
|
SELECT c02.*
|
||||||
|
FROM (
|
||||||
|
SELECT
|
||||||
|
c00.qustnr_tmplat_id
|
||||||
|
, c00.qestnr_id
|
||||||
|
, c00.qustnr_qesitm_id
|
||||||
|
, max(c00.qustnr_rslt_id) AS qustnr_rslt_id
|
||||||
|
FROM
|
||||||
|
LETTNQESTNRRSLTDetail c00
|
||||||
|
WHERE
|
||||||
|
c00.EDU_APLCT_ORD = #eduAplctOrd#
|
||||||
|
AND c00.EDU_CHASI_ORD = #eduChasiOrd#
|
||||||
|
GROUP BY
|
||||||
|
c00.qustnr_tmplat_id
|
||||||
|
, c00.qestnr_id
|
||||||
|
, c00.qustnr_qesitm_id
|
||||||
|
)c01
|
||||||
|
, LETTNQESTNRRSLTDetail c02
|
||||||
|
WHERE c01.qustnr_tmplat_id=c02.qustnr_tmplat_id
|
||||||
|
AND c01.qestnr_id=c02.qestnr_id
|
||||||
|
AND c01.qustnr_qesitm_id=c02.qustnr_qesitm_id
|
||||||
|
AND c01.qustnr_rslt_id=c02.qustnr_rslt_id
|
||||||
|
|
||||||
|
) c
|
||||||
on(
|
on(
|
||||||
b.QUSTNR_TMPLAT_ID =c.QUSTNR_TMPLAT_ID
|
b.QUSTNR_TMPLAT_ID =c.QUSTNR_TMPLAT_ID
|
||||||
AND b.QESTNR_ID =c.QESTNR_ID
|
AND b.QESTNR_ID =c.QESTNR_ID
|
||||||
AND b.QUSTNR_QESITM_ID =c.QUSTNR_QESITM_ID
|
AND b.QUSTNR_QESITM_ID =c.QUSTNR_QESITM_ID
|
||||||
|
|
||||||
AND c.EDU_APLCT_ORD = #eduAplctOrd#
|
|
||||||
AND c.EDU_CHASI_ORD = #eduChasiOrd#
|
|
||||||
|
|
||||||
)
|
)
|
||||||
/*
|
/*
|
||||||
LEFT OUTER JOIN LETTNQUSTNRRESPONDINFO d
|
LEFT OUTER JOIN LETTNQUSTNRRESPONDINFO d
|
||||||
|
|||||||
@ -97,7 +97,13 @@
|
|||||||
|
|
||||||
searchOptions = $("#searchSelStatusTemp").html();
|
searchOptions = $("#searchSelStatusTemp").html();
|
||||||
|
|
||||||
|
//지역에 이전 선택값이 나오도록
|
||||||
|
if ('${cndtnTrgtInfoMngVO.srchCndt2 }'!=''){
|
||||||
|
$("#srchCndt2").val('${cndtnTrgtInfoMngVO.srchCndt2 }').prop("selected", true); //값이 1인 option 선택
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//관할지청에 지역에 선택된 지역의 값만 나오도록
|
||||||
$('.select2-selection').click( function(){
|
$('.select2-selection').click( function(){
|
||||||
//alert( 'test' );
|
//alert( 'test' );
|
||||||
srchCndt2Chg2();
|
srchCndt2Chg2();
|
||||||
|
|||||||
@ -60,6 +60,30 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function fncGoDel(){
|
||||||
|
|
||||||
|
if(confirm("삭제 하시겠습니까?\n복구할수없습니다.")){
|
||||||
|
$.ajax({
|
||||||
|
type:"POST",
|
||||||
|
url:"${pageContext.request.contextPath}/kccadr/oprtn/comm/eduAplctDeleteAjax.do",
|
||||||
|
data: {
|
||||||
|
"eduAplctOrd" : $("#eduAplctOrd").val()
|
||||||
|
},
|
||||||
|
dataType:'json',
|
||||||
|
success:function(returnData){
|
||||||
|
if(returnData.rsCnt > 0){
|
||||||
|
alert("삭제 되었습니다.");
|
||||||
|
fncGoList();
|
||||||
|
}
|
||||||
|
},
|
||||||
|
error:function(request , status, error){
|
||||||
|
alert("code:"+request.status+"\n"+"message:"+request.responseText+"\n"+"error:"+error);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//교육 선정여부 수정 로직
|
//교육 선정여부 수정 로직
|
||||||
function fncChsChange(flag) {
|
function fncChsChange(flag) {
|
||||||
if(confirm("선정여부를 변경 하시겠습니까?")){
|
if(confirm("선정여부를 변경 하시겠습니까?")){
|
||||||
@ -543,6 +567,9 @@
|
|||||||
</c:if>
|
</c:if>
|
||||||
<!-- 교육 확정인 경우 관리자만 수정 가능 하도록 -->
|
<!-- 교육 확정인 경우 관리자만 수정 가능 하도록 -->
|
||||||
<button type="button" class="btn_type01" onclick="fncGoEdit();">수정</button>
|
<button type="button" class="btn_type01" onclick="fncGoEdit();">수정</button>
|
||||||
|
<c:if test="${info.aprvlCd eq '10' || info.aprvlCd eq '13' || info.aprvlCd eq '11'}">
|
||||||
|
<button type="button" class="btn_type02" onclick="fncGoDel(); return false;">삭제</button>
|
||||||
|
</c:if>
|
||||||
</div>
|
</div>
|
||||||
<div class="btn_right">
|
<div class="btn_right">
|
||||||
<button type="button" class="btn_type03" onclick="fncGoList(); return false;">목록</button>
|
<button type="button" class="btn_type03" onclick="fncGoList(); return false;">목록</button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user