Commit 125cfeeb authored by 陈立彬's avatar 陈立彬

fix

parent 0c106b03
...@@ -154,7 +154,7 @@ public class ExamController { ...@@ -154,7 +154,7 @@ public class ExamController {
// 数据转换 // 数据转换
qaResultList = qaRecordDos.stream().map(v -> { qaResultList = qaRecordDos.stream().map(v -> {
ElehKnowledgeDo knowledgeDo = knowledgeMapper.selectQuestion(v.getTenant(), v.getQuestionId()); ElehKnowledgeDo knowledgeDo = knowledgeMapper.selectById(v.getTenant(), v.getQuestionId());
SingleQaResult qa = new SingleQaResult(); SingleQaResult qa = new SingleQaResult();
qa.setQuestion(knowledgeDo.getQuestion()); qa.setQuestion(knowledgeDo.getQuestion());
......
...@@ -13,5 +13,5 @@ public interface ElehKnowledgeMapper extends BaseMapper<ElehKnowledgeDo> { ...@@ -13,5 +13,5 @@ public interface ElehKnowledgeMapper extends BaseMapper<ElehKnowledgeDo> {
ElehKnowledgeDo selectQuestion(@Param("tenant") Integer tenant, @Param("tagId") Long tagId, @Param("questionId") Long questionId); ElehKnowledgeDo selectQuestion(@Param("tenant") Integer tenant, @Param("tagId") Long tagId, @Param("questionId") Long questionId);
@Select(value = "select * from eleh_knowledge where tenant = #{tenant} and id = #{questionId}") @Select(value = "select * from eleh_knowledge where tenant = #{tenant} and id = #{questionId}")
ElehKnowledgeDo selectQuestion(@Param("tenant") Integer tenant, @Param("questionId") Long questionId); ElehKnowledgeDo selectById(@Param("tenant") Integer tenant, @Param("questionId") Long questionId);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment