|
@@ -347,7 +347,8 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void importWordQuestion(MultipartFile file, Long eduId, Long projectId, Long businessId, Long subjectId) {
|
|
|
+ public String importWordQuestion(MultipartFile file, Long eduId, Long projectId, Long businessId, Long subjectId) {
|
|
|
+ String errorLog = ""; //错误提示
|
|
|
String buffer = "";
|
|
|
String importNo = ServletUtils.getEncoded("IMPORT");
|
|
|
try{
|
|
@@ -368,7 +369,6 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
List<QuestionChildAddBo> optionsList =new ArrayList<>(); //题目选项
|
|
|
String content = ""; //每行正文
|
|
|
String qContent = ""; //题目正文
|
|
|
- String errorLog = ""; //错误提示
|
|
|
String answerQuestion = null; //答案
|
|
|
String analysisContent = ""; //解析文本
|
|
|
int i = 0;
|
|
@@ -677,6 +677,7 @@ public class QuestionServiceImpl extends ServiceImpl<QuestionMapper, Question> i
|
|
|
}catch (IOException e){
|
|
|
System.out.println("此文件不是word文件!A"+e.getMessage()+e.toString()+e.getLocalizedMessage());
|
|
|
}
|
|
|
+ return errorLog;
|
|
|
}
|
|
|
|
|
|
private String removeNo(String txt){
|