Commit 9cdd327e by 梅存智

获取题目的多个附件

parent 25204a4a
......@@ -848,6 +848,12 @@ public class TrResearchQuestionServiceImpl extends ServiceImpl<TrResearchQuestio
}
TrResearchQuestionVo trResearchQuestionVo=new TrResearchQuestionVo();
BeanUtils.copyProperties(trResearchQuestion,trResearchQuestionVo);
//获取题目相关的附件
Long questionID = trResearchQuestionVo.getId();
List<String> attachmentUrl = researchQuestionAttachmentMapper.selectQuestionAttachmentByQuestionId(questionID);
trResearchQuestionVo.setAttachmentUrl(attachmentUrl);
myQuestion.setQuestion(trResearchQuestionVo);
myQuestion.setAnswerQuestionVo(answerQuestionVo);
return myQuestion;
......
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