bug fix
This commit is contained in:
parent
90d1442b5e
commit
452966dd53
@ -130,7 +130,7 @@ public class ExamPaperAnswerServiceImpl extends BaseServiceImpl<ExamPaperAnswer>
|
||||
TextContent textContent = textContentService.selectById(taskExamCustomerAnswer.getTextContentId());
|
||||
List<TaskItemAnswerObject> taskItemAnswerObjects = JsonUtil.toJsonListObject(textContent.getContent(), TaskItemAnswerObject.class);
|
||||
taskItemAnswerObjects.stream()
|
||||
.filter(d -> d.getExamPaperAnswerId() == examPaperAnswer.getId())
|
||||
.filter(d -> d.getExamPaperAnswerId().equals(examPaperAnswer.getId()))
|
||||
.findFirst().ifPresent(taskItemAnswerObject -> taskItemAnswerObject.setStatus(examPaperAnswer.getStatus()));
|
||||
textContentService.jsonConvertUpdate(textContent, taskItemAnswerObjects, null);
|
||||
textContentService.updateByIdFilter(textContent);
|
||||
@ -176,12 +176,13 @@ public class ExamPaperAnswerServiceImpl extends BaseServiceImpl<ExamPaperAnswer>
|
||||
|
||||
/**
|
||||
* 用户提交答案的转化存储对象
|
||||
* @param question question
|
||||
*
|
||||
* @param question question
|
||||
* @param customerQuestionAnswer customerQuestionAnswer
|
||||
* @param examPaper examPaper
|
||||
* @param itemOrder itemOrder
|
||||
* @param user user
|
||||
* @param now now
|
||||
* @param examPaper examPaper
|
||||
* @param itemOrder itemOrder
|
||||
* @param user user
|
||||
* @param now now
|
||||
* @return ExamPaperQuestionCustomerAnswer
|
||||
*/
|
||||
private ExamPaperQuestionCustomerAnswer ExamPaperQuestionCustomerAnswerFromVM(Question question, ExamPaperSubmitItemVM customerQuestionAnswer, ExamPaper examPaper, Integer itemOrder, User user, Date now) {
|
||||
@ -205,9 +206,10 @@ public class ExamPaperAnswerServiceImpl extends BaseServiceImpl<ExamPaperAnswer>
|
||||
|
||||
/**
|
||||
* 判断提交答案是否正确,保留用户提交的答案
|
||||
*
|
||||
* @param examPaperQuestionCustomerAnswer examPaperQuestionCustomerAnswer
|
||||
* @param question question
|
||||
* @param customerQuestionAnswer customerQuestionAnswer
|
||||
* @param question question
|
||||
* @param customerQuestionAnswer customerQuestionAnswer
|
||||
*/
|
||||
private void setSpecialFromVM(ExamPaperQuestionCustomerAnswer examPaperQuestionCustomerAnswer, Question question, ExamPaperSubmitItemVM customerQuestionAnswer) {
|
||||
QuestionTypeEnum questionTypeEnum = QuestionTypeEnum.fromCode(examPaperQuestionCustomerAnswer.getQuestionType());
|
||||
|
Loading…
x
Reference in New Issue
Block a user