feat: pms - #3222 -강사별 숙박신청 기능 개선 종료

This commit is contained in:
hylee 2023-06-27 18:41:34 +09:00
parent ac499df475
commit cdfcc2ffff
6 changed files with 41 additions and 3 deletions

View File

@ -13,6 +13,8 @@ public interface VEAcmdtAplctService {
//R : //R :
VEInstrFeeAcmdtVO selectDetailByUser(VEInstrFeeAcmdtVO paramVO) throws Exception; VEInstrFeeAcmdtVO selectDetailByUser(VEInstrFeeAcmdtVO paramVO) throws Exception;
VEInstrFeeAcmdtVO selectDetailByUser_r2(VEInstrFeeAcmdtVO paramVO) throws Exception;
VEInstrFeeAcmdtVO selectDcmdtAplctYesterday(VEInstrFeeAcmdtVO paramVO) throws Exception; VEInstrFeeAcmdtVO selectDcmdtAplctYesterday(VEInstrFeeAcmdtVO paramVO) throws Exception;

View File

@ -39,6 +39,10 @@ public class VEAcmdtAplctDAO extends EgovAbstractDAO {
return (VEInstrFeeAcmdtVO) select("VEAcmdtAplctDAO.selectDetailByUser", paramVO); return (VEInstrFeeAcmdtVO) select("VEAcmdtAplctDAO.selectDetailByUser", paramVO);
} }
public VEInstrFeeAcmdtVO selectDetailByUser_r2(VEInstrFeeAcmdtVO paramVO) throws Exception {
return (VEInstrFeeAcmdtVO) select("VEAcmdtAplctDAO.selectDetailByUser_r2", paramVO);
}
public VEInstrFeeAcmdtVO selectDcmdtAplctYesterday(VEInstrFeeAcmdtVO paramVO) throws Exception { public VEInstrFeeAcmdtVO selectDcmdtAplctYesterday(VEInstrFeeAcmdtVO paramVO) throws Exception {
return (VEInstrFeeAcmdtVO) select("VEAcmdtAplctDAO.selectDcmdtAplctYesterday", paramVO); return (VEInstrFeeAcmdtVO) select("VEAcmdtAplctDAO.selectDcmdtAplctYesterday", paramVO);
} }

View File

@ -37,6 +37,11 @@ public class VEAcmdtAplctServiceImpl implements VEAcmdtAplctService {
return vEAcmdtAplctDAO.selectDetailByUser(paramVO); return vEAcmdtAplctDAO.selectDetailByUser(paramVO);
} }
//R
public VEInstrFeeAcmdtVO selectDetailByUser_r2(VEInstrFeeAcmdtVO paramVO) throws Exception {
return vEAcmdtAplctDAO.selectDetailByUser_r2(paramVO);
}
@Override @Override
public VEInstrFeeAcmdtVO selectDcmdtAplctYesterday(VEInstrFeeAcmdtVO paramVO) throws Exception { public VEInstrFeeAcmdtVO selectDcmdtAplctYesterday(VEInstrFeeAcmdtVO paramVO) throws Exception {
return vEAcmdtAplctDAO.selectDcmdtAplctYesterday(paramVO); return vEAcmdtAplctDAO.selectDcmdtAplctYesterday(paramVO);

View File

@ -6,6 +6,7 @@ import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession; import javax.servlet.http.HttpSession;
import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Controller; import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap; import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.ModelAttribute; import org.springframework.web.bind.annotation.ModelAttribute;
@ -14,6 +15,8 @@ import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView; import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.support.RedirectAttributes; import org.springframework.web.servlet.mvc.support.RedirectAttributes;
import com.dreamsecurity.magicline.util.Log;
import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo; import egovframework.rte.ptl.mvc.tags.ui.pagination.PaginationInfo;
import kcc.com.cmm.EgovMessageSource; import kcc.com.cmm.EgovMessageSource;
import kcc.com.cmm.LoginVO; import kcc.com.cmm.LoginVO;
@ -449,10 +452,16 @@ public class VEAsgnmController {
acmdtAplct.setEduAplctOrd(vEInstrAsgnmVO.getEduAplctOrd()); acmdtAplct.setEduAplctOrd(vEInstrAsgnmVO.getEduAplctOrd());
acmdtAplct.setEduChasiOrd(vEInstrAsgnmVO.getEduChasiOrd()); acmdtAplct.setEduChasiOrd(vEInstrAsgnmVO.getEduChasiOrd());
acmdtAplct.setInstrDiv("10"); acmdtAplct.setInstrDiv("10");
acmdtAplct = vEAcmdtAplctService.selectDetailByUser(acmdtAplct);
//=== 20230627 이호영
//=== 숙박신청 차시 제거
//=== 교육 key로만 select해서 진행
// acmdtAplct = vEAcmdtAplctService.selectDetailByUser(acmdtAplct);
acmdtAplct = vEAcmdtAplctService.selectDetailByUser_r2(acmdtAplct);
String acmdtAplctCheck = "N"; String acmdtAplctCheck = "N";
if(acmdtAplct.getAcmdtAplctOrd() != null) { // if(StringUtils.isNotEmpty(acmdtAplct.getAcmdtAplctOrd())) {
if(acmdtAplct != null) {
acmdtAplctCheck="Y"; acmdtAplctCheck="Y";
} }
model.addAttribute("acmdtAplctCheck", acmdtAplctCheck); model.addAttribute("acmdtAplctCheck", acmdtAplctCheck);

View File

@ -159,6 +159,23 @@
</isNotEmpty> </isNotEmpty>
</select> </select>
<!-- 강사 정보 R -->
<select id="VEAcmdtAplctDAO.selectDetailByUser_r2" parameterClass="VEInstrFeeAcmdtVO" resultClass="VEInstrFeeAcmdtVO">
select
aprvl_cd as aprvlCd
, aplct_cn as aplctCn
, acmdt_fee as acmdtFee
, acmdt_aplct_ord as AcmdtAplctOrd
from
ve_acmdt_aplct
where
edu_aplct_ord = #eduAplctOrd#
and aplct_cn is not null
limit 1
</select>
<select id="VEAcmdtAplctDAO.selectDcmdtAplctYesterday" parameterClass="VEInstrFeeAcmdtVO" resultClass="VEInstrFeeAcmdtVO"> <select id="VEAcmdtAplctDAO.selectDcmdtAplctYesterday" parameterClass="VEInstrFeeAcmdtVO" resultClass="VEInstrFeeAcmdtVO">
SELECT SELECT
a.schol_instt_nm AS scholInsttNm a.schol_instt_nm AS scholInsttNm

View File

@ -629,7 +629,8 @@
LEFT OUTER JOIN ve_acmdt_aplct d LEFT OUTER JOIN ve_acmdt_aplct d
ON ( ON (
a.edu_aplct_ord = d.edu_aplct_ord a.edu_aplct_ord = d.edu_aplct_ord
AND a.edu_chasi_ord = d.edu_chasi_ord <!-- AND a.edu_chasi_ord = d.edu_chasi_ord -->
and d.aplct_cn is not null
) )
LEFT OUTER JOIN ve_instr_fee e LEFT OUTER JOIN ve_instr_fee e
ON ( ON (