Browse Source

报告问题为0的情况

tags/v1.1.0
qiujinyang 2 years ago
parent
commit
080b21323b
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java

+ 3
- 0
tuoheng-admin/src/main/java/com/tuoheng/admin/service/impl/QuestionServiceImpl.java View File

@@ -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())

Loading…
Cancel
Save