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());
|
TextContent textContent = textContentService.selectById(taskExamCustomerAnswer.getTextContentId());
|
||||||
List<TaskItemAnswerObject> taskItemAnswerObjects = JsonUtil.toJsonListObject(textContent.getContent(), TaskItemAnswerObject.class);
|
List<TaskItemAnswerObject> taskItemAnswerObjects = JsonUtil.toJsonListObject(textContent.getContent(), TaskItemAnswerObject.class);
|
||||||
taskItemAnswerObjects.stream()
|
taskItemAnswerObjects.stream()
|
||||||
.filter(d -> d.getExamPaperAnswerId() == examPaperAnswer.getId())
|
.filter(d -> d.getExamPaperAnswerId().equals(examPaperAnswer.getId()))
|
||||||
.findFirst().ifPresent(taskItemAnswerObject -> taskItemAnswerObject.setStatus(examPaperAnswer.getStatus()));
|
.findFirst().ifPresent(taskItemAnswerObject -> taskItemAnswerObject.setStatus(examPaperAnswer.getStatus()));
|
||||||
textContentService.jsonConvertUpdate(textContent, taskItemAnswerObjects, null);
|
textContentService.jsonConvertUpdate(textContent, taskItemAnswerObjects, null);
|
||||||
textContentService.updateByIdFilter(textContent);
|
textContentService.updateByIdFilter(textContent);
|
||||||
@ -176,6 +176,7 @@ public class ExamPaperAnswerServiceImpl extends BaseServiceImpl<ExamPaperAnswer>
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 用户提交答案的转化存储对象
|
* 用户提交答案的转化存储对象
|
||||||
|
*
|
||||||
* @param question question
|
* @param question question
|
||||||
* @param customerQuestionAnswer customerQuestionAnswer
|
* @param customerQuestionAnswer customerQuestionAnswer
|
||||||
* @param examPaper examPaper
|
* @param examPaper examPaper
|
||||||
@ -205,6 +206,7 @@ public class ExamPaperAnswerServiceImpl extends BaseServiceImpl<ExamPaperAnswer>
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* 判断提交答案是否正确,保留用户提交的答案
|
* 判断提交答案是否正确,保留用户提交的答案
|
||||||
|
*
|
||||||
* @param examPaperQuestionCustomerAnswer examPaperQuestionCustomerAnswer
|
* @param examPaperQuestionCustomerAnswer examPaperQuestionCustomerAnswer
|
||||||
* @param question question
|
* @param question question
|
||||||
* @param customerQuestionAnswer customerQuestionAnswer
|
* @param customerQuestionAnswer customerQuestionAnswer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user