diff --git a/src/main/java/kcc/ve/oprtn/cmdTrgt/web/CmdPrcsInfoMngController.java b/src/main/java/kcc/ve/oprtn/cmdTrgt/web/CmdPrcsInfoMngController.java index f169e92b..a2ff8be2 100644 --- a/src/main/java/kcc/ve/oprtn/cmdTrgt/web/CmdPrcsInfoMngController.java +++ b/src/main/java/kcc/ve/oprtn/cmdTrgt/web/CmdPrcsInfoMngController.java @@ -2853,21 +2853,45 @@ public class CmdPrcsInfoMngController { - //step2.파일 처리==================================== - //파일 정상 처리 여부와 첨부 파일 정보 - //String atchFileId = this.takeFile(multiRequest, modelAndView, bmVO); - //파일 제한 수량 가져오기, 없으면 기본값 사용 - int i_file_limit = checkFileUtil.getLimitCount(request); // file count - int i_limit_size = checkFileUtil.getLimitSize(request); // file MB - String s_file_exts = checkFileUtil.getS_exts(); // file exts - - String atchFileId = checkFileUtil.fileValCheckNdbInsert( - multiRequest, modelAndView - , "APLCT_" //file_name_prefix - , s_file_exts - , i_limit_size - , i_file_limit - ); //EXT, MB size and ea + //step2.첨부파일 체크 후 저장 하기 + String atchFileId = ""; + atchFileId = vEPrcsDetailVO.getAtchFileId(); + + //DB에서 실제 첨부파일 존재 여부 확인 + FileVO fileVO = new FileVO(); + fileVO.setAtchFileId(atchFileId); + List result = fileService.selectFileInfs(fileVO); + if (result.size()<=0) { + atchFileId = ""; + } + + //파일 제한 수량 가져오기, 없으면 기본값 사용 + int i_file_limit = checkFileUtil.getLimitCount(request); // file count + int i_limit_size = checkFileUtil.getLimitSize(request); // file MB + String s_file_exts = checkFileUtil.getS_exts(); // file exts + + if ("".equals(atchFileId)) { + //파일 정상 처리 여부와 첨부 파일 정보 + atchFileId = checkFileUtil.fileValCheckNdbInsert( + multiRequest, modelAndView + , "APLCT_" //file_name_prefix + , s_file_exts + , i_limit_size + , i_file_limit + ); //EXT, MB size and ea + + }else { + + atchFileId = checkFileUtil.fileValCheckNdbUpdate( + multiRequest, modelAndView + , "APLCT_" + , s_file_exts + , i_limit_size + , i_file_limit + , atchFileId + ); //EXT, MB size and ea + + } if ("ERROR".equals(atchFileId)) return modelAndView; diff --git a/src/main/java/kcc/ve/oprtn/cndtnSspnIdtmt/web/CndtnPrcsInfoMngController.java b/src/main/java/kcc/ve/oprtn/cndtnSspnIdtmt/web/CndtnPrcsInfoMngController.java index 294417fe..1fa4fd9e 100644 --- a/src/main/java/kcc/ve/oprtn/cndtnSspnIdtmt/web/CndtnPrcsInfoMngController.java +++ b/src/main/java/kcc/ve/oprtn/cndtnSspnIdtmt/web/CndtnPrcsInfoMngController.java @@ -2848,40 +2848,63 @@ public class CndtnPrcsInfoMngController { SsoLoginVO ssoLoginVO = checkLoginUtil.getSSOLoginVO(request); //SSO 로그인 정보 가져오기 + //step2.첨부파일 체크 후 저장 하기 + String atchFileId = ""; + atchFileId = vEPrcsDetailVO.getAtchFileId(); + + //DB에서 실제 첨부파일 존재 여부 확인 + FileVO fileVO = new FileVO(); + fileVO.setAtchFileId(atchFileId); + List result = fileService.selectFileInfs(fileVO); + if (result.size()<=0) { + atchFileId = ""; + } - //step2.파일 처리==================================== - //파일 정상 처리 여부와 첨부 파일 정보 - //String atchFileId = this.takeFile(multiRequest, modelAndView, bmVO); - //파일 제한 수량 가져오기, 없으면 기본값 사용 - int i_file_limit = checkFileUtil.getLimitCount(request); // file count - int i_limit_size = checkFileUtil.getLimitSize(request); // file MB - String s_file_exts = checkFileUtil.getS_exts(); // file exts - - String atchFileId = checkFileUtil.fileValCheckNdbInsert( - multiRequest, modelAndView - , "APLCT_" //file_name_prefix - , s_file_exts - , i_limit_size - , i_file_limit - ); //EXT, MB size and ea + //파일 제한 수량 가져오기, 없으면 기본값 사용 + int i_file_limit = checkFileUtil.getLimitCount(request); // file count + int i_limit_size = checkFileUtil.getLimitSize(request); // file MB + String s_file_exts = checkFileUtil.getS_exts(); // file exts + + if ("".equals(atchFileId)) { + //파일 정상 처리 여부와 첨부 파일 정보 + atchFileId = checkFileUtil.fileValCheckNdbInsert( + multiRequest, modelAndView + , "APLCT_" //file_name_prefix + , s_file_exts + , i_limit_size + , i_file_limit + ); //EXT, MB size and ea + + }else { + + atchFileId = checkFileUtil.fileValCheckNdbUpdate( + multiRequest, modelAndView + , "APLCT_" + , s_file_exts + , i_limit_size + , i_file_limit + , atchFileId + ); //EXT, MB size and ea + + } if ("ERROR".equals(atchFileId)) return modelAndView; - - - //String prcsAplctPrdOrd = prcsAplctPrdGnrService.getNextStringId(); // 고유ID - //vEPrcsDetailVO.setPrcsAplctPrdOrd(prcsAplctPrdOrd); - vEPrcsDetailVO.setLctrDivCd("60"); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부 - vEPrcsDetailVO.setLastUpdusrId(loginVO.getUniqId()); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부 - //vEPrcsDetailVO.setUseYn("Y"); - vEPrcsDetailVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id - vEPrcsDetailVO.setAtchFileId(atchFileId); - - vEPrcsAplctPrdService.update(vEPrcsDetailVO); + - - modelAndView.addObject("result", "success"); - - return modelAndView; + //String prcsAplctPrdOrd = prcsAplctPrdGnrService.getNextStringId(); // 고유ID + //vEPrcsDetailVO.setPrcsAplctPrdOrd(prcsAplctPrdOrd); + vEPrcsDetailVO.setLctrDivCd("60"); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부 + vEPrcsDetailVO.setLastUpdusrId(loginVO.getUniqId()); //강의구분코드 VE0011 10-청소년강의, 20-성인강의, 30-체험, 50-기반강화, 60-조건부 + //vEPrcsDetailVO.setUseYn("Y"); + vEPrcsDetailVO.setFrstRegisterId(loginVO.getUniqId()); //esntl_id + vEPrcsDetailVO.setAtchFileId(atchFileId); + + vEPrcsAplctPrdService.update(vEPrcsDetailVO); + + + modelAndView.addObject("result", "success"); + + return modelAndView; } diff --git a/src/main/java/kcc/ve/oprtn/prevent/web/PreventMngController.java b/src/main/java/kcc/ve/oprtn/prevent/web/PreventMngController.java index 541f5334..d0f6357c 100644 --- a/src/main/java/kcc/ve/oprtn/prevent/web/PreventMngController.java +++ b/src/main/java/kcc/ve/oprtn/prevent/web/PreventMngController.java @@ -2654,21 +2654,45 @@ public class PreventMngController { - //step2.파일 처리==================================== - //파일 정상 처리 여부와 첨부 파일 정보 - //String atchFileId = this.takeFile(multiRequest, modelAndView, bmVO); - //파일 제한 수량 가져오기, 없으면 기본값 사용 - int i_file_limit = checkFileUtil.getLimitCount(request); // file count - int i_limit_size = checkFileUtil.getLimitSize(request); // file MB - String s_file_exts = checkFileUtil.getS_exts(); // file exts - - String atchFileId = checkFileUtil.fileValCheckNdbInsert( - multiRequest, modelAndView - , "APLCT_" //file_name_prefix - , s_file_exts - , i_limit_size - , i_file_limit - ); //EXT, MB size and ea + //step2.첨부파일 체크 후 저장 하기 + String atchFileId = ""; + atchFileId = vEPrcsDetailVO.getAtchFileId(); + + //DB에서 실제 첨부파일 존재 여부 확인 + FileVO fileVO = new FileVO(); + fileVO.setAtchFileId(atchFileId); + List result = fileService.selectFileInfs(fileVO); + if (result.size()<=0) { + atchFileId = ""; + } + + //파일 제한 수량 가져오기, 없으면 기본값 사용 + int i_file_limit = checkFileUtil.getLimitCount(request); // file count + int i_limit_size = checkFileUtil.getLimitSize(request); // file MB + String s_file_exts = checkFileUtil.getS_exts(); // file exts + + if ("".equals(atchFileId)) { + //파일 정상 처리 여부와 첨부 파일 정보 + atchFileId = checkFileUtil.fileValCheckNdbInsert( + multiRequest, modelAndView + , "APLCT_" //file_name_prefix + , s_file_exts + , i_limit_size + , i_file_limit + ); //EXT, MB size and ea + + }else { + + atchFileId = checkFileUtil.fileValCheckNdbUpdate( + multiRequest, modelAndView + , "APLCT_" + , s_file_exts + , i_limit_size + , i_file_limit + , atchFileId + ); //EXT, MB size and ea + + } if ("ERROR".equals(atchFileId)) return modelAndView; diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cmdTrgt/cndtnEduPrcsAplctPrdMngMdfy.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cmdTrgt/cndtnEduPrcsAplctPrdMngMdfy.jsp index f4881c55..e3848085 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cmdTrgt/cndtnEduPrcsAplctPrdMngMdfy.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cmdTrgt/cndtnEduPrcsAplctPrdMngMdfy.jsp @@ -225,6 +225,7 @@ +
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cmdTrgt/popup/cndtnInstrAsgnmPopup.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cmdTrgt/popup/cndtnInstrAsgnmPopup.jsp index 03d81c62..69e550cf 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cmdTrgt/popup/cndtnInstrAsgnmPopup.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cmdTrgt/popup/cndtnInstrAsgnmPopup.jsp @@ -141,9 +141,9 @@ - - <%-- --%> + <%-- --%> + <%-- --%> @@ -152,7 +152,7 @@ - + @@ -165,7 +165,7 @@ - + <%-- --%> diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngMdfy.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngMdfy.jsp index d794e552..a3165d3b 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngMdfy.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/cndtnEduPrcsAplctPrdMngMdfy.jsp @@ -225,6 +225,7 @@ +
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/popup/cndtnInstrAsgnmPopup.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/popup/cndtnInstrAsgnmPopup.jsp index caa90917..953da8fc 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/popup/cndtnInstrAsgnmPopup.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/cndtnSspnIdtmt/popup/cndtnInstrAsgnmPopup.jsp @@ -141,9 +141,9 @@
이름거주
지역
주소 선호분야 온라인
 Km
- - <%-- --%> + <%-- --%> + <%-- --%> @@ -152,7 +152,7 @@ - + @@ -165,7 +165,7 @@ - + <%-- --%> diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/prevent/cndtnEduPrcsAplctPrdMngMdfy.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/prevent/cndtnEduPrcsAplctPrdMngMdfy.jsp index 8a2190d1..c8074cfd 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/prevent/cndtnEduPrcsAplctPrdMngMdfy.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/prevent/cndtnEduPrcsAplctPrdMngMdfy.jsp @@ -225,6 +225,7 @@ +
diff --git a/src/main/webapp/WEB-INF/jsp/oprtn/prevent/popup/cndtnInstrAsgnmPopup.jsp b/src/main/webapp/WEB-INF/jsp/oprtn/prevent/popup/cndtnInstrAsgnmPopup.jsp index 3a5ea946..13ba0142 100644 --- a/src/main/webapp/WEB-INF/jsp/oprtn/prevent/popup/cndtnInstrAsgnmPopup.jsp +++ b/src/main/webapp/WEB-INF/jsp/oprtn/prevent/popup/cndtnInstrAsgnmPopup.jsp @@ -141,9 +141,9 @@
이름거주
지역
주소 선호분야 온라인
 Km
- - <%-- --%> + <%-- --%> + <%-- --%> @@ -152,7 +152,7 @@ - + @@ -165,7 +165,7 @@ - + <%-- --%>
이름거주
지역
주소 선호분야 온라인
 Km