diff --git a/src/main/java/kcc/ve/aplct/comweb/CommonWebController.java b/src/main/java/kcc/ve/aplct/comweb/CommonWebController.java index 1f51129c..3f15635f 100644 --- a/src/main/java/kcc/ve/aplct/comweb/CommonWebController.java +++ b/src/main/java/kcc/ve/aplct/comweb/CommonWebController.java @@ -1282,11 +1282,32 @@ public class CommonWebController { vEInstrAssiEduAplctVOList = vEAutoAsgnmMIXService.selectInstrMntAsgnmtChasiList(vEAutoAsgnmVO); + + //step2-1-1.동일일자 시간대에 배정이 없는강사찾기 + for (int j=0;j selectRsdneInstrList(VEAutoAsgnmVO paramVO) throws Exception; + + //step2-1-1.동일일자,시간에 배정안된 강사 검색(필) + List selectInstrTimeDupFilterList(VEAutoAsgnmVO paramVO) throws Exception; //step2-2.희망 지역 강사 검색(필) List selectInstrHopeAreaList(VEAutoAsgnmVO paramVO) throws Exception; diff --git a/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/impl/VEAutoAsgnmMIXDAO.java b/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/impl/VEAutoAsgnmMIXDAO.java index 62e01a21..37bf2fee 100644 --- a/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/impl/VEAutoAsgnmMIXDAO.java +++ b/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/impl/VEAutoAsgnmMIXDAO.java @@ -21,6 +21,12 @@ public class VEAutoAsgnmMIXDAO extends EgovAbstractDAO { List tlist = (List) list("VEAutoAsgnmDAO.selectRsdneInstrList", paramVO); return tlist; } + + public List selectInstrTimeDupFilterList(VEAutoAsgnmVO paramVO) { + @SuppressWarnings("unchecked") + List tlist = (List) list("VEAutoAsgnmDAO.selectInstrTimeDupFilterList", paramVO); + return tlist; + } public List selectInstrHopeAreaList(VEAutoAsgnmVO paramVO) { @SuppressWarnings("unchecked") diff --git a/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/impl/VEAutoAsgnmMIXServiceImpl.java b/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/impl/VEAutoAsgnmMIXServiceImpl.java index 443ab193..c81b89e5 100644 --- a/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/impl/VEAutoAsgnmMIXServiceImpl.java +++ b/src/main/java/kcc/ve/instr/tngrVisitEdu/eduInfo/service/impl/VEAutoAsgnmMIXServiceImpl.java @@ -27,7 +27,12 @@ public class VEAutoAsgnmMIXServiceImpl implements VEAutoAsgnmMIXService { public List selectRsdneInstrList(VEAutoAsgnmVO paramVO) throws Exception{ return vEAutoAsgnmMIXDAO.selectRsdneInstrList(paramVO); } - + + @Override + public List selectInstrTimeDupFilterList(VEAutoAsgnmVO paramVO) throws Exception{ + return vEAutoAsgnmMIXDAO.selectInstrTimeDupFilterList(paramVO); + } + @Override public List selectInstrHopeAreaList(VEAutoAsgnmVO paramVO) throws Exception{ return vEAutoAsgnmMIXDAO.selectInstrHopeAreaList(paramVO); diff --git a/src/main/java/kcc/ve/oprtn/tngrVisitEdu/eduAsgnmCnfrmMng/web/EduAsgnmCnfrmMngTngrController.java b/src/main/java/kcc/ve/oprtn/tngrVisitEdu/eduAsgnmCnfrmMng/web/EduAsgnmCnfrmMngTngrController.java index f4124ced..20816ebc 100644 --- a/src/main/java/kcc/ve/oprtn/tngrVisitEdu/eduAsgnmCnfrmMng/web/EduAsgnmCnfrmMngTngrController.java +++ b/src/main/java/kcc/ve/oprtn/tngrVisitEdu/eduAsgnmCnfrmMng/web/EduAsgnmCnfrmMngTngrController.java @@ -207,6 +207,23 @@ public class EduAsgnmCnfrmMngTngrController { vEEduAplctVO.setSearchAsgnmAprvlCd("30"); //교육배치확정 대상은 강사가 배정확정되어야 한다. + + if (!"".equals(vEEduAplctVO.getSearchKeyword())) { + + if ("2".equals(vEEduAplctVO.getSearchCondition())) { + vEEduAplctVO.setSelectPagingListQuery(" AND i.instr_nm='"+egovCryptoUtil.encrypt(vEEduAplctVO.getSearchKeyword())+"'"); + + }else if ("0".equals(vEEduAplctVO.getSearchCondition())) { + vEEduAplctVO.setSelectPagingListQuery(" AND (A.SCHOL_INSTT_NM LIKE '%' || '"+vEEduAplctVO.getSearchKeyword()+"' || '%' OR i.instr_nm='"+egovCryptoUtil.encrypt(vEEduAplctVO.getSearchKeyword())+"')"); + } + + //AND A.SCHOL_INSTT_NM LIKE '%' || #searchKeyword# || '%' + + //vEEduAplctVO = egovCryptoUtil.encryptVEEduAplctVOInfo(vEEduAplctVO); + } + + + List vEEduAplctVOList = vEEduMIXService.selectPagingList(vEEduAplctVO); //이름 복호화 VEEduAplctVO vo = new VEEduAplctVO(); diff --git a/src/main/resources/egovframework/sqlmap/ve/edu/VEAutoAsgnm_MIX_SQL_Tibero.xml b/src/main/resources/egovframework/sqlmap/ve/edu/VEAutoAsgnm_MIX_SQL_Tibero.xml index 07682fd8..8c123034 100644 --- a/src/main/resources/egovframework/sqlmap/ve/edu/VEAutoAsgnm_MIX_SQL_Tibero.xml +++ b/src/main/resources/egovframework/sqlmap/ve/edu/VEAutoAsgnm_MIX_SQL_Tibero.xml @@ -458,6 +458,44 @@ END ,0)>NVL(aa.chasi,0) + + + -