| | |
| | | ExamPaperAnswer examPaperAnswer = examPaperAnswerInfo.getExamPaperAnswer(); |
| | | List<ExamPaperQuestionCustomerAnswer> examPaperQuestionCustomerAnswers = examPaperAnswerInfo.getExamPaperQuestionCustomerAnswers(); |
| | | |
| | | examPaperAnswerService.insertByFilter(examPaperAnswer); |
| | | examPaperAnswerService.save(examPaperAnswer); |
| | | examPaperQuestionCustomerAnswers.stream().filter(a -> QuestionTypeEnum.needSaveTextContent(a.getQuestionType())).forEach(d -> { |
| | | TextContent textContent = new TextContent(); |
| | | textContent.setContent(d.getAnswer()); |
| | | textContent.setCreateTime(now); |
| | | textContentService.insertByFilter(textContent); |
| | | textContentService.save(textContent); |
| | | d.setTextContentId(textContent.getId()); |
| | | d.setAnswer(null); |
| | | }); |