|
|
@ -304,7 +304,9 @@ public class AssemblePaperDomainServiceImpl implements AssemblePaperDomainServic |
|
|
} |
|
|
} |
|
|
// todo
|
|
|
// todo
|
|
|
candidateIds.removeIf(id -> result.stream().anyMatch(r -> r.getId().equals(id))); |
|
|
candidateIds.removeIf(id -> result.stream().anyMatch(r -> r.getId().equals(id))); |
|
|
|
|
|
if (CollUtil.isEmpty(candidateIds)){ |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
QuestionDTO bestQuestionDTO = questionMapper.selectBatchIds(candidateIds).stream() |
|
|
QuestionDTO bestQuestionDTO = questionMapper.selectBatchIds(candidateIds).stream() |
|
|
.max(Comparator.comparingInt(q -> { |
|
|
.max(Comparator.comparingInt(q -> { |
|
|
@ -330,3 +332,5 @@ public class AssemblePaperDomainServiceImpl implements AssemblePaperDomainServic |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|