2024-02-19 11:18 체험교실 기존 신청이 있는경우 신청안되도록 수정

This commit is contained in:
myname 2024-02-19 11:18:29 +09:00
parent 20494f8dbf
commit e8af66812b
4 changed files with 23 additions and 1 deletions

View File

@ -183,8 +183,15 @@ public class ExprnClsrmAplctController {
HttpSession session = request.getSession(); HttpSession session = request.getSession();
session.setAttribute("beforeSiteUrl", request.getRequestURI()); session.setAttribute("beforeSiteUrl", request.getRequestURI());
//a
LoginVO loginVO = checkLoginUtil.getAuthLoginVO(); //권한에 따른 로그인 정보 가져오기
//신청서 양식다운로드 정보 가져오기(신청일자 기준 가장 최신 데이터, 1개 로우) //신청서 양식다운로드 정보 가져오기(신청일자 기준 가장 최신 데이터, 1개 로우)
VEPrcsDetailVO detailVO = new VEPrcsDetailVO(); VEPrcsDetailVO detailVO = new VEPrcsDetailVO();
//체험교실 운영신청이 있는지 확인 한다.
if (loginVO!=null) detailVO.setUserId(loginVO.getUniqId());
detailVO.setLctrDivCd("30"); //저작권 체험교실 구분 detailVO.setLctrDivCd("30"); //저작권 체험교실 구분
detailVO = vEPrcsAplctPrdService.selectDetailNewOne(detailVO); detailVO = vEPrcsAplctPrdService.selectDetailNewOne(detailVO);
model.addAttribute("detailVO", detailVO); model.addAttribute("detailVO", detailVO);

View File

@ -549,7 +549,16 @@
a.dprtm_nm AS dprtmNm , a.dprtm_nm AS dprtmNm ,
a.cn_atch_file_id AS cnAtchFileId, a.cn_atch_file_id AS cnAtchFileId,
a.oprtn_atch_file_id AS oprtnAtchFileId a.oprtn_atch_file_id AS oprtnAtchFileId
, b.edu_aplct_ord AS eduAplctOrd
FROM ve_prcs_aplct_prd a FROM ve_prcs_aplct_prd a
LEFT OUTER JOIN (
SELECT *
FROM ve_edu_aplct a0
WHERE 1=1
AND a0.LCTR_DIV_CD =#lctrDivCd#
AND a0.user_id =#userId#
)b
on(a.prcs_ord=b.prcs_ord)
WHERE 1 = 1 WHERE 1 = 1
<isNotEmpty property="lctrDivCd"> <isNotEmpty property="lctrDivCd">
AND a.lctr_div_cd=#lctrDivCd# AND a.lctr_div_cd=#lctrDivCd#

View File

@ -26,6 +26,12 @@
alert("신청기간이 아닙니다."); alert("신청기간이 아닙니다.");
return false; return false;
} }
if(${detailVO.eduAplctOrd != null}){
alert("신청한 내역이 있습니다.");
return false;
}
commonPopLayeropen( commonPopLayeropen(
"${pageContext.request.contextPath}/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/popup/cautionGuide.do" "${pageContext.request.contextPath}/web/ve/aplct/cpyrgExprnClsrm/exprnClsrmInfo/popup/cautionGuide.do"
, 730 , 730

View File

@ -278,7 +278,7 @@
<div class="btn_center"> <div class="btn_center">
</div> </div>
<div class="btn_right"> <div class="btn_right">
<button type="button" class="btnType04" onclick="goWrite()">등록</button> <!-- <button type="button" class="btnType04" onclick="goWrite()">등록</button> -->
</div> </div>
</div> </div>