2024-03-05 15:23 성인 설문결과 중복으로 나오지 않도록 최근 하나의 결과 값만 가져옴
This commit is contained in:
parent
a7dabdfd6d
commit
4bbc0a4b1e
@ -354,6 +354,23 @@ public class CommonManageWebController {
|
||||
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")
|
||||
public ModelAndView eduAplctStatusListAjax(HttpServletRequest request , ModelMap model , VEEduAplctVO veEduAplctVO) throws Exception {
|
||||
|
||||
@ -471,6 +471,7 @@
|
||||
<isNotEmpty property="searchSmbtEndDt">
|
||||
AND TO_CHAR(A.req_pnttm, 'YYYYMMDD') <![CDATA[ <= ]]> REPLACE(#searchSmbtEndDt#, '.' , '')
|
||||
</isNotEmpty>
|
||||
|
||||
|
||||
/* 관할청 멀티셀렉트 */
|
||||
<isNotEmpty property="searchSelStatus">
|
||||
@ -479,6 +480,15 @@
|
||||
#searchSelStatusList[]#
|
||||
</iterate>
|
||||
</isNotEmpty>
|
||||
|
||||
|
||||
<isEmpty property="searchSelStatus">
|
||||
<isNotEmpty property="srchCndt2">
|
||||
AND a.cmptnt_athrt like #srchCndt2#||'%'
|
||||
|
||||
</isNotEmpty>
|
||||
</isEmpty>
|
||||
|
||||
ORDER BY
|
||||
|
||||
a.req_pnttm DESC
|
||||
|
||||
@ -1081,7 +1081,7 @@
|
||||
DELETE FROM
|
||||
<include refid="VEEduAplctDAO.table_name"/>
|
||||
WHERE
|
||||
a.edu_aplct_ord = #eduAplctOrd#
|
||||
edu_aplct_ord = #eduAplctOrd#
|
||||
|
||||
</delete>
|
||||
|
||||
|
||||
@ -226,15 +226,37 @@
|
||||
|
||||
FROM LETTNQESTNRINFO a
|
||||
, 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(
|
||||
b.QUSTNR_TMPLAT_ID =c.QUSTNR_TMPLAT_ID
|
||||
AND b.QESTNR_ID =c.QESTNR_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
|
||||
|
||||
@ -97,7 +97,13 @@
|
||||
|
||||
searchOptions = $("#searchSelStatusTemp").html();
|
||||
|
||||
//지역에 이전 선택값이 나오도록
|
||||
if ('${cndtnTrgtInfoMngVO.srchCndt2 }'!=''){
|
||||
$("#srchCndt2").val('${cndtnTrgtInfoMngVO.srchCndt2 }').prop("selected", true); //값이 1인 option 선택
|
||||
}
|
||||
|
||||
|
||||
//관할지청에 지역에 선택된 지역의 값만 나오도록
|
||||
$('.select2-selection').click( function(){
|
||||
//alert( 'test' );
|
||||
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) {
|
||||
if(confirm("선정여부를 변경 하시겠습니까?")){
|
||||
@ -535,14 +559,17 @@
|
||||
<!-- 운영신청, 수정요청, 수정완료 시 -->
|
||||
<c:if test="${info.aprvlCd eq '10' || info.aprvlCd eq '13' || info.aprvlCd eq '11'}">
|
||||
<button type="button" class="btn_type01" onclick="fncStatusChange('20'); return false;">선정처리</button>
|
||||
<button type="button" class="btn_type02" onclick="fncStatusChange('12'); return false;">선정취소</button>
|
||||
<button type="button" class="btn_type02" onclick="fncStatusChange('12'); return false;">선정취소</button>
|
||||
</c:if>
|
||||
<!-- 운영확정 시 -->
|
||||
<c:if test="${info.aprvlCd eq '20'}">
|
||||
<button type="button" class="btn_type01" onclick="fncStatusChange('40'); return false;">서류제출 요청</button>
|
||||
</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 class="btn_right">
|
||||
<button type="button" class="btn_type03" onclick="fncGoList(); return false;">목록</button>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user