|
@@ -797,7 +797,7 @@ public abstract class ExportPaperAbstractService {
|
|
DocxProcessUtil.exportWord(paperExp,paperfileName,template);
|
|
DocxProcessUtil.exportWord(paperExp,paperfileName,template);
|
|
DocxProcessUtil.processImage(paperfileName,getPkgList(paperExp.getId()));
|
|
DocxProcessUtil.processImage(paperfileName,getPkgList(paperExp.getId()));
|
|
File file = new File(TEMP_FILE_EXP+paperfileName);
|
|
File file = new File(TEMP_FILE_EXP+paperfileName);
|
|
- String paperFilePath = uploadUrl+paperfileName;
|
|
|
|
|
|
+ String paperFilePath = uploadUrl+extractConfig.getOrgId()+"/"+paperfileName;
|
|
UpYun upyun = new UpYun(bucketName,userName,password);
|
|
UpYun upyun = new UpYun(bucketName,userName,password);
|
|
upyun.writeFile(paperFilePath,file,true);
|
|
upyun.writeFile(paperFilePath,file,true);
|
|
examFileService.saveExamFile(new ExamFile(extractConfig,paperFilePath,examFileType,DOCX_SUFFIX),accessUser);
|
|
examFileService.saveExamFile(new ExamFile(extractConfig,paperFilePath,examFileType,DOCX_SUFFIX),accessUser);
|
|
@@ -836,7 +836,7 @@ public abstract class ExportPaperAbstractService {
|
|
File file = new File(TEMP_FILE_EXP+objectiveFilename);
|
|
File file = new File(TEMP_FILE_EXP+objectiveFilename);
|
|
FileOutputStream out = new FileOutputStream(file);
|
|
FileOutputStream out = new FileOutputStream(file);
|
|
objectiveExcelExporter.write(objectiveFilename,objectiveQuestionStructureList,out);
|
|
objectiveExcelExporter.write(objectiveFilename,objectiveQuestionStructureList,out);
|
|
- String objectiveFilePath = uploadUrl+objectiveFilename;
|
|
|
|
|
|
+ String objectiveFilePath = uploadUrl+extractConfig.getOrgId()+"/"+objectiveFilename;
|
|
UpYun upyun = new UpYun(bucketName,userName,password);
|
|
UpYun upyun = new UpYun(bucketName,userName,password);
|
|
upyun.writeFile(objectiveFilePath,file,true);
|
|
upyun.writeFile(objectiveFilePath,file,true);
|
|
examFileService.saveExamFile(new ExamFile(extractConfig,objectiveFilePath,ExamFileType.PAPER_STRUCTURE_OBJECTIVE,EXCEL_SUFFIX),accessUser);
|
|
examFileService.saveExamFile(new ExamFile(extractConfig,objectiveFilePath,ExamFileType.PAPER_STRUCTURE_OBJECTIVE,EXCEL_SUFFIX),accessUser);
|
|
@@ -925,7 +925,7 @@ public abstract class ExportPaperAbstractService {
|
|
File file = new File(TEMP_FILE_EXP+subjectiveFileName);
|
|
File file = new File(TEMP_FILE_EXP+subjectiveFileName);
|
|
FileOutputStream out = new FileOutputStream(file);
|
|
FileOutputStream out = new FileOutputStream(file);
|
|
subjectiveExcelExporter.write(subjectiveFileName,subjectiveQuestionStructureList,out);
|
|
subjectiveExcelExporter.write(subjectiveFileName,subjectiveQuestionStructureList,out);
|
|
- String subjectiveFilePath = uploadUrl+subjectiveFileName;
|
|
|
|
|
|
+ String subjectiveFilePath = uploadUrl+extractConfig.getOrgId()+"/"+subjectiveFileName;
|
|
UpYun upyun = new UpYun(bucketName,userName,password);
|
|
UpYun upyun = new UpYun(bucketName,userName,password);
|
|
upyun.writeFile(subjectiveFilePath,file,true);
|
|
upyun.writeFile(subjectiveFilePath,file,true);
|
|
examFileService.saveExamFile(new ExamFile(extractConfig,subjectiveFilePath,ExamFileType.PAPER_STRUCTURE_SUBJECTIVE,EXCEL_SUFFIX),accessUser);
|
|
examFileService.saveExamFile(new ExamFile(extractConfig,subjectiveFilePath,ExamFileType.PAPER_STRUCTURE_SUBJECTIVE,EXCEL_SUFFIX),accessUser);
|