Commit 9eb15f83 by “Kongxiangkun”

投票列表增加字段

parent fdba25ed
...@@ -479,17 +479,15 @@ public class TrResearchQuestionServiceImpl extends ServiceImpl<TrResearchQuestio ...@@ -479,17 +479,15 @@ public class TrResearchQuestionServiceImpl extends ServiceImpl<TrResearchQuestio
otherOptionVo.setNo(option.getNo()); otherOptionVo.setNo(option.getNo());
otherOptionVo.setRequired(option.getRequired()); otherOptionVo.setRequired(option.getRequired());
question.setOtherOptionVo(otherOptionVo); question.setOtherOptionVo(otherOptionVo);
question.setOptionContent(option.getContent());
break; break;
} }
} }
question.setOptionContent(options.get(0).getContent());
} }
//获取题目相关的附件 //获取题目相关的附件
List<String> attachmentUrl = researchQuestionAttachmentMapper.selectQuestionAttachmentByQuestionId(question.getId()); List<String> attachmentUrl = researchQuestionAttachmentMapper.selectQuestionAttachmentByQuestionId(question.getId());
question.setAttachmentUrl(attachmentUrl); question.setAttachmentUrl(attachmentUrl);
question.setOptions(options); question.setOptions(options);
} }
......
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