Commit 9ba3c202 by 梅存智

获取题目相关的附件

parent fc1805ee
......@@ -536,8 +536,14 @@ public class TrResearchQuestionServiceImpl extends ServiceImpl<TrResearchQuestio
TrResearchQuestion trResearchQuestion = researchQuestionMapper.selectById(questionId);
if (trResearchQuestion != null) {
List<TrResearchQuestion> listAllForJump = researchQuestionMapper.listAllForJump(trResearchQuestion.getNo(), trResearchQuestion.getResearchId());
for (TrResearchQuestion question : listAllForJump) {
//获取题目相关的附件
List<String> attachmentUrl = researchQuestionAttachmentMapper.selectQuestionAttachmentByQuestionId(question.getId());
question.setAttachmentUrl(attachmentUrl);
}
return listAllForJump;
}
}
return null;
}
......
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