|
@@ -30,7 +30,7 @@ public class SxsfExportPaperService extends ExportPaperAbstractService {
|
|
|
public void downloadPaper(String paperId,String zipFileName) throws Exception {
|
|
|
PaperExp paperExp = initPaperExp(paperId);
|
|
|
if(paperExp!=null){
|
|
|
- String paperfileName = paperExp.getCourseNo()+"_"+ExamFileType.PAPER.getName()+DOCX_SUFFIX;
|
|
|
+ String paperfileName = paperExp.getName()+"_"+paperExp.getCourseNo()+"_"+ExamFileType.PAPER.getName()+DOCX_SUFFIX;
|
|
|
File file = new File(TEMP_FILE_EXP+File.separator+zipFileName+File.separator+paperfileName);
|
|
|
DocxProcessUtil.exportWordNew(paperExp, file,SXSF_TEMPLATE_PAPER);
|
|
|
DocxProcessUtil.processImage(zipFileName+File.separator+paperfileName,getPkgList(paperId));
|
|
@@ -41,7 +41,7 @@ public class SxsfExportPaperService extends ExportPaperAbstractService {
|
|
|
public void downloadPaperAnswer(String paperId, String zipFileName)throws Exception {
|
|
|
PaperExp paperExp = initPaperExp(paperId);
|
|
|
if(paperExp!=null){
|
|
|
- String answerFileName = paperExp.getCourseNo()+"_"+ExamFileType.ANSWER.getName()+DOCX_SUFFIX;
|
|
|
+ String answerFileName = paperExp.getName()+"_"+paperExp.getCourseNo()+"_"+ExamFileType.ANSWER.getName()+DOCX_SUFFIX;
|
|
|
File file = new File(TEMP_FILE_EXP+File.separator+zipFileName+File.separator+answerFileName);
|
|
|
DocxProcessUtil.exportWordNew(paperExp,file,SXSF_TEMPLATE_ANSWER);
|
|
|
DocxProcessUtil.processImage(zipFileName+File.separator+answerFileName,getPkgList(paperId));
|