|
@@ -718,7 +718,7 @@ public class ExtractConfigServiceImpl implements ExtractConfigService {
|
|
|
FileDisposeUtil.saveUrlAs(downloadUrl+examFile.getFilePath(),downloadDirectory+File.separator+examFile.getFileName());
|
|
|
}
|
|
|
//创建压缩文件名称
|
|
|
- String zipFileName = examFiles.get(0).getExamName()+"_"+examFiles.get(0).getExamType().name()+"_"+CommonUtils.getCurNum();
|
|
|
+ String zipFileName = CommonUtils.getCurNum();
|
|
|
//将downloadDirectory文件夹压缩成zip文件,存放到zipDirectory文件夹中
|
|
|
FileDisposeUtil.fileToZip(downloadDirectory,zipDirectory,zipFileName);
|
|
|
//下载zip文件到客户端
|
|
@@ -753,14 +753,6 @@ public class ExtractConfigServiceImpl implements ExtractConfigService {
|
|
|
return paperIdList;
|
|
|
}
|
|
|
|
|
|
- @Override
|
|
|
- public List<ExamFile> findPaperStructure(String examId, String courseId) {
|
|
|
- ExamFile examFile = new ExamFile();
|
|
|
- examFile.setExamId(examId);
|
|
|
- examFile.setCourseId(courseId);
|
|
|
- return examFileService.findExamFileListByExamFile(examFile);
|
|
|
- }
|
|
|
-
|
|
|
private void makePaperStructure(String examName,List<String> paperIds,ExportStructure exportStructure) throws Exception{
|
|
|
List<QuestionTypeNum> questionTypeNums = exportStructure.getQuestionTypeNums();
|
|
|
|