From 216582111f4051e28aed02b29ea635e897d256a3 Mon Sep 17 00:00:00 2001 From: JIWOO Date: Thu, 16 Oct 2025 15:37:38 +0900 Subject: [PATCH] =?UTF-8?q?=EC=9D=B4=EC=A7=80=EC=9A=B0=20-=20=EA=B4=80?= =?UTF-8?q?=EB=A6=AC=EC=9E=90=20>=20=EA=B3=BC=EC=A0=95=EA=B4=80=EB=A6=AC?= =?UTF-8?q?=20>=20=EA=B3=BC=EC=A0=95=EC=8B=A0=EC=B2=AD=EA=B8=B0=EA=B0=84?= =?UTF-8?q?=EA=B4=80=EB=A6=AC=20>=20=EC=B2=A8=EB=B6=80=ED=8C=8C=EC=9D=BC?= =?UTF-8?q?=20=EC=88=98=EC=A0=95,=20=EA=B0=95=EC=82=AC=20=EC=A3=BC?= =?UTF-8?q?=EC=86=8C=EC=A7=80=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cmdTrgt/web/CmdPrcsInfoMngController.java | 54 ++++++++---- .../web/CndtnPrcsInfoMngController.java | 83 ++++++++++++------- .../prevent/web/PreventMngController.java | 54 ++++++++---- .../cmdTrgt/cndtnEduPrcsAplctPrdMngMdfy.jsp | 1 + .../cmdTrgt/popup/cndtnInstrAsgnmPopup.jsp | 8 +- .../cndtnEduPrcsAplctPrdMngMdfy.jsp | 1 + .../popup/cndtnInstrAsgnmPopup.jsp | 8 +- .../prevent/cndtnEduPrcsAplctPrdMngMdfy.jsp | 1 + .../prevent/popup/cndtnInstrAsgnmPopup.jsp | 8 +- 9 files changed, 146 insertions(+), 72 deletions(-) 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