@@ -86,6 +86,9 @@ public class QuestionServiceImpl extends BaseServiceImpl<QuestionMapper, Questio | |||
} | |||
private List<Question> getQuestions(QuestionQuery query, List<ThMission> thMissions) { | |||
if(thMissions.size()==0){ | |||
return new ArrayList<>(); | |||
} | |||
return questionMapper.selectList(new LambdaQueryWrapper<Question>() | |||
//只需要取最上面的那一条 | |||
.eq(Question::getMissionId, thMissions.get(0).getId()) |