|
@@ -276,11 +276,11 @@ public class ExtractConfigFileServiceImpl implements ExtractConfigFileService {
|
|
|
}
|
|
|
|
|
|
ExcelWriter objectiveExcelExporter = new ExcelWriter(ObjectiveQuestionStructure.class);
|
|
|
- FileOutputStream out1 = new FileOutputStream(downloadDirectory+"\\"+examName+"_客观题.xlsx");
|
|
|
+ FileOutputStream out1 = new FileOutputStream(downloadDirectory+File.separator+examName+"_客观题.xlsx");
|
|
|
objectiveExcelExporter.write(examName+"_客观题.xlsx",objectiveQuestionStructureList,out1);
|
|
|
|
|
|
ExcelWriter subjectiveExcelExporter = new ExcelWriter(SubjectiveQuestionStructure.class);
|
|
|
- FileOutputStream out2 = new FileOutputStream(downloadDirectory+"\\"+examName+"_主观题.xlsx");
|
|
|
+ FileOutputStream out2 = new FileOutputStream(downloadDirectory+File.separator+examName+"_主观题.xlsx");
|
|
|
subjectiveExcelExporter.write(examName+"_主观题.xlsx",subjectiveQuestionStructureList,out2);
|
|
|
|
|
|
logger.info("批量生成试卷结构完成");
|