2024-07-22 18:01 체험교실 일괄다운로드 오류 수정
This commit is contained in:
parent
100f94efdb
commit
52693fb1f2
@ -846,22 +846,31 @@ String[] order = {
|
|||||||
//첨부파일있는 항목만 재배치
|
//첨부파일있는 항목만 재배치
|
||||||
List<String> atchFileIdList = new ArrayList<String>();
|
List<String> atchFileIdList = new ArrayList<String>();
|
||||||
List<String> fileNmList = new ArrayList<String>();
|
List<String> fileNmList = new ArrayList<String>();
|
||||||
|
|
||||||
vEEduAplctVOList.forEach( vo -> {
|
vEEduAplctVOList.forEach( vo -> {
|
||||||
|
|
||||||
if(vo.getOrgnlRsltAtchFileId() != null) {
|
if(vo.getOrgnlRsltAtchFileId() != null) {
|
||||||
atchFileIdList.add(vo.getOrgnlRsltAtchFileId());
|
atchFileIdList.add(vo.getOrgnlRsltAtchFileId());
|
||||||
fileNmList.add(vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_원본");
|
fileNmList.add(vo.getOrgnlRsltAtchFileId() + "_" + vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_원본");
|
||||||
|
//fileNmList.add(vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_원본");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(vo.getCpyRsltAtchFileId() != null) {
|
if(vo.getCpyRsltAtchFileId() != null) {
|
||||||
atchFileIdList.add(vo.getCpyRsltAtchFileId());
|
atchFileIdList.add(vo.getCpyRsltAtchFileId());
|
||||||
fileNmList.add(vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_사본");
|
fileNmList.add(vo.getCpyRsltAtchFileId() + "_" + vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_사본");
|
||||||
|
//fileNmList.add(vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_사본");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(vo.getEvdncPhtAtchFileId() != null) {
|
if(vo.getEvdncPhtAtchFileId() != null) {
|
||||||
atchFileIdList.add(vo.getEvdncPhtAtchFileId());
|
atchFileIdList.add(vo.getEvdncPhtAtchFileId());
|
||||||
fileNmList.add(vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_증빙");
|
fileNmList.add(vo.getEvdncPhtAtchFileId() + "_" + vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_증빙");
|
||||||
|
//fileNmList.add(vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_증빙");
|
||||||
}
|
}
|
||||||
|
|
||||||
if(vo.getRmtTrnAtchFileId() != null) {
|
if(vo.getRmtTrnAtchFileId() != null) {
|
||||||
atchFileIdList.add(vo.getRmtTrnAtchFileId());
|
atchFileIdList.add(vo.getRmtTrnAtchFileId());
|
||||||
fileNmList.add(vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_이수증");
|
fileNmList.add(vo.getRmtTrnAtchFileId() + "_" + vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_이수증");
|
||||||
|
//fileNmList.add(vo.getScholInsttNm()+"_"+vo.getChrgNm()+"_이수증");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -888,10 +897,7 @@ String[] order = {
|
|||||||
FileInputStream fis = null;
|
FileInputStream fis = null;
|
||||||
ZipArchiveOutputStream zos = null;
|
ZipArchiveOutputStream zos = null;
|
||||||
BufferedInputStream bis = null;
|
BufferedInputStream bis = null;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int fileCnt = 0;
|
int fileCnt = 0;
|
||||||
try {
|
try {
|
||||||
System.out.println("outZipNm : "+ outZipNm);
|
System.out.println("outZipNm : "+ outZipNm);
|
||||||
@ -900,10 +906,24 @@ String[] order = {
|
|||||||
|
|
||||||
Iterator<FileVO> fvoIterator = fvoList.iterator();
|
Iterator<FileVO> fvoIterator = fvoList.iterator();
|
||||||
Iterator<String> fileNmIterator = fileNmList.iterator();
|
Iterator<String> fileNmIterator = fileNmList.iterator();
|
||||||
|
|
||||||
|
|
||||||
while (fvoIterator.hasNext() && fileNmIterator.hasNext() ){
|
//while (fvoIterator.hasNext() && fileNmIterator.hasNext() ){
|
||||||
|
while (fvoIterator.hasNext()){
|
||||||
FileVO vo = fvoIterator.next();
|
FileVO vo = fvoIterator.next();
|
||||||
String fileNm = fileNmIterator.next();
|
//String fileNm = fileNmIterator.next();
|
||||||
|
//System.out.println("vo.getAtchFileId().replaceAll()");
|
||||||
|
//System.out.println(vo.getAtchFileId().replaceAll("FILE_", ""));
|
||||||
|
//System.out.println(vo.getAtchFileId().replaceAll("FILE_", ""));
|
||||||
|
String fileNm = "";
|
||||||
|
|
||||||
|
for (int i=0;i<fileNmList.size();i++) {
|
||||||
|
if (fileNmList.get(i).indexOf(vo.getAtchFileId())>-1) {
|
||||||
|
fileNm = fileNmList.get(i).replaceAll(vo.getAtchFileId() + "_", "");
|
||||||
|
i = fileNmList.size();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
zos.setEncoding("UTF-8");
|
zos.setEncoding("UTF-8");
|
||||||
|
|
||||||
// Create a file object
|
// Create a file object
|
||||||
|
|||||||
@ -9322,7 +9322,7 @@ VALUES
|
|||||||
</select>
|
</select>
|
||||||
|
|
||||||
<select id="VEEduMIXDAO.selectExprnRsltFileDownList" parameterClass="VEEduAplctVO" resultClass="VEEduAplctVO">
|
<select id="VEEduMIXDAO.selectExprnRsltFileDownList" parameterClass="VEEduAplctVO" resultClass="VEEduAplctVO">
|
||||||
/* 임시.*NOT_SQL_LOG.* VEEduMIXDAO.selectExprnAtchFileDownList */
|
/* 임시.*NOT_SQL_LOG.* VEEduMIXDAO.selectExprnRsltFileDownList */
|
||||||
SELECT
|
SELECT
|
||||||
A.edu_aplct_ord AS eduAplctOrd,
|
A.edu_aplct_ord AS eduAplctOrd,
|
||||||
A.schol_instt_nm AS scholInsttNm,
|
A.schol_instt_nm AS scholInsttNm,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user