From 26e415c5af5dfe9f2b4749647858714fc7419518 Mon Sep 17 00:00:00 2001 From: myname Date: Tue, 16 Jan 2024 16:56:08 +0900 Subject: [PATCH] =?UTF-8?q?2024-01-16=2016:54=20=EA=B5=90=EC=9C=A1?= =?UTF-8?q?=EB=B0=B0=EC=B9=98=ED=99=95=EC=A0=95=EB=AA=A9=EB=A1=9D=20?= =?UTF-8?q?=EA=B0=95=EC=82=AC=EA=B2=80=EC=83=89=20=EA=B8=B0=EB=8A=A5=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ve/aplct/comweb/CommonWebController.java | 21 ++++++++++ .../service/VEAutoAsgnmMIXService.java | 3 ++ .../service/impl/VEAutoAsgnmMIXDAO.java | 6 +++ .../impl/VEAutoAsgnmMIXServiceImpl.java | 7 +++- .../web/EduAsgnmCnfrmMngTngrController.java | 17 +++++++++ .../ve/edu/VEAutoAsgnm_MIX_SQL_Tibero.xml | 38 +++++++++++++++++++ .../sqlmap/ve/edu/VEEdu_MIX_SQL_Tibero.xml | 6 ++- .../tngrVisitEdu/eduAsgnmCnfrmMngList.jsp | 1 - 8 files changed, 96 insertions(+), 3 deletions(-) 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) + + + -