diff --git a/src/main/java/kcc/ve/instr/tngrVisitEdu/endInfo/web/VEEduEndController.java b/src/main/java/kcc/ve/instr/tngrVisitEdu/endInfo/web/VEEduEndController.java index c21558cb..cd2b668d 100644 --- a/src/main/java/kcc/ve/instr/tngrVisitEdu/endInfo/web/VEEduEndController.java +++ b/src/main/java/kcc/ve/instr/tngrVisitEdu/endInfo/web/VEEduEndController.java @@ -606,12 +606,18 @@ public class VEEduEndController { fileCheck.setAtchFileId(s_atchFileId); result = fileService.selectFileInfs(fileCheck); - for(int i=0; i < result.size(); i++) { - String orignlFileNm = vEInstrDetailVOInfo.getInstrNm()+"강사_"+vEInstrAsgnmVOInfo.getScholInsttNm()+" 결과보고서 ("+vEInstrAsgnmVOInfo.getEduHopeDt()+"_"+vEInstrAsgnmVOInfo.getStrtTm()+"-"+vEInstrAsgnmVOInfo.getEndTm()+")"; - orignlFileNm = orignlFileNm+"_"+(i+1); - orignlFileNm = orignlFileNm +"."+ result.get(i).getFileExtsn(); - result.get(i).setOrignlFileNm(orignlFileNm); - fileService.updateFileName(result.get(i)); + try { + for(int i=0; i < result.size(); i++) { + String orignlFileNm = vEInstrDetailVOInfo.getInstrNm()+"강사_"+vEInstrAsgnmVOInfo.getScholInsttNm()+" 결과보고서 ("+vEInstrAsgnmVOInfo.getEduHopeDt()+"_"+vEInstrAsgnmVOInfo.getStrtTm()+"-"+vEInstrAsgnmVOInfo.getEndTm()+")"; + orignlFileNm = orignlFileNm+"_"+(i+1); + orignlFileNm = orignlFileNm +"."+ result.get(i).getFileExtsn(); + result.get(i).setOrignlFileNm(orignlFileNm); + fileService.updateFileName(result.get(i)); + } + + }catch(Exception ex) { + System.out.println("Exception vEEduRsltRprtService.insert-upper for "); + ex.printStackTrace(); } //결과 저장 @@ -628,6 +634,7 @@ public class VEEduEndController { }catch(Exception ex) { System.out.println("Exception vEEduRsltRprtService.insert"); + ex.printStackTrace(); } modelAndView.addObject("result", "success");