|
@@ -99,11 +99,11 @@ public class KmtExerciseQuestionDealServiceImpl implements KmtExerciseQuestionDe
|
|
|
Map<String, Object> map = JSON.parseObject(content);
|
|
|
map.put("question", request.getQuestion());
|
|
|
map.put("question_text", request.getQuestionText());
|
|
|
- map.put("question_json", Collections.singletonList(ExerciseUtil.getExerciseQuestionAnswerValue(questionImage)));
|
|
|
+ map.put("question_json", JSON.toJSONString(Collections.singletonList(ExerciseUtil.getExerciseQuestionAnswerValue(questionImage))));
|
|
|
map.put("option_answer", request.getAnswer());
|
|
|
- map.put("answer_json", request.getAnswerJson());
|
|
|
+ map.put("answer_json", JSON.toJSONString(request.getAnswerJson()));
|
|
|
map.put("analysis", request.getQuestionAnalysis());
|
|
|
- map.put("analysis_json", request.getAnalysisJson());
|
|
|
+ map.put("analysis_json", JSON.toJSONString(request.getAnalysisJson()));
|
|
|
JSONFileUtil.saveJSONFile(PropertiesUtil.getValue("EXERCISE_JSON_FILE_PATH") + kmtExerciseQuestion.getQuestionPath(), JSON.toJSONString(content));
|
|
|
ThreadPool.getInstance().addTask(new SyncSaveExerciseQuestionsTask(kmtExerciseMapper, exerciseQuestionSearchService, Collections.singletonList(kmtExerciseQuestion.getId())));
|
|
|
}
|